Interface AgentWorkspacesManager
-
- All Known Implementing Classes:
RemoteAgentWorkspaceManagerImpl
@Internal public interface AgentWorkspacesManager
Managing of agent workspaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
registerWorkspace(@NotNull Key key)
Register workspace as being in use.void
scanAndRemoveUnusedWorkspaces()
Search for workspaces related to deleted jobs & environments.void
unregisterWorkspace(@NotNull Key key)
Mark workspace as unused and to be deleted in the nextscanAndRemoveUnusedWorkspaces()
.
-
-
-
Method Detail
-
scanAndRemoveUnusedWorkspaces
void scanAndRemoveUnusedWorkspaces()
Search for workspaces related to deleted jobs & environments. If workspace has not been used for the last 24h (see:registerWorkspace(Key)
, contact the server and check if the corresponding object still exists. After that, remove workspaces that are no longer used.
-
registerWorkspace
void registerWorkspace(@NotNull @NotNull Key key)
Register workspace as being in use. It will be skipped duringscanAndRemoveUnusedWorkspaces()
for the next 24h.
-
unregisterWorkspace
void unregisterWorkspace(@NotNull @NotNull Key key)
Mark workspace as unused and to be deleted in the nextscanAndRemoveUnusedWorkspaces()
.
-
-