Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint to close experiments #96

Open
bhufmann opened this issue Nov 2, 2023 · 0 comments · May be fixed by #95
Open

Add endpoint to close experiments #96

bhufmann opened this issue Nov 2, 2023 · 0 comments · May be fixed by #95

Comments

@bhufmann
Copy link
Collaborator

bhufmann commented Nov 2, 2023

This endpoint can be used to close the experiment and upon reception of the message, the server can dispose can dispose allocated resources. The Trace Compass server will dispose the experiments and close all state system and index files.

Use PUT for this, because sending this message multiple times will have the same outcome. The api should look as follows.

/tsp/api/experiments/{expUUID}:close

Use this notation with :close as suffix, will allow to create dedicated actions for different behaviours, like deleting trace indexes (e.g. delete supplementary files of Trace Compass server, rename, copy etc)

bhufmann added a commit to bhufmann/trace-server-protocol that referenced this issue Nov 2, 2023
With this it's possible to close an experiment on the server. Upon
reception of the command the server can dispose allocated resources
hence the client doesn't need them anymore.

UI clients for example can close the experiment when a user closed the
graphs.

Fixes eclipse-cdt-cloud#96

Signed-off-by: Bernd Hufmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant