Class StartInstanceUserActionImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.instances.StartInstanceUserActionImpl
-
- All Implemented Interfaces:
StartInstanceUserAction
public class StartInstanceUserActionImpl extends Object implements StartInstanceUserAction
- Author:
- Sergey.Pak Date: 01.09.22
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.clouds.server.impl.instances.StartInstanceUserAction
StartInstanceUserAction.StartingInstance
-
-
Field Summary
Fields Modifier and Type Field Description static String
ORDER_ID
-
Fields inherited from interface jetbrains.buildServer.clouds.server.impl.instances.StartInstanceUserAction
START_CLOUD_INSTANCE_PROCESSED_EVENT, START_CLOUD_INSTANCE_TASK
-
-
Constructor Summary
Constructors Constructor Description StartInstanceUserActionImpl(StartInstanceAction startInstanceAction, MultiNodeTasks nodeTasks, MultiNodesEvents nodeEvents, ExecutorServices executorServices, ServerResponsibility serverResponsibility, EventDispatcher<BuildServerListener> serverEvents, UserModel userModel, CloudInstancesPersistor instancesPersistor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<StartInstanceUserAction.StartingInstance>
getStartingInstances(String projectId, String profileId, String imageId)
MultiNodeTasks.Task
startInstanceFromUI(String projectId, String profileId, String imageId, Long userId)
boolean
tryCancelStartingInstanceTask(String projectId, String profileId, String imageId, String instanceId)
tries to cancel a starting instance task
-
-
-
Field Detail
-
ORDER_ID
public static final String ORDER_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StartInstanceUserActionImpl
public StartInstanceUserActionImpl(@NotNull StartInstanceAction startInstanceAction, @NotNull MultiNodeTasks nodeTasks, @NotNull MultiNodesEvents nodeEvents, @NotNull ExecutorServices executorServices, @NotNull ServerResponsibility serverResponsibility, @NotNull EventDispatcher<BuildServerListener> serverEvents, @NotNull UserModel userModel, @NotNull CloudInstancesPersistor instancesPersistor)
-
-
Method Detail
-
startInstanceFromUI
public MultiNodeTasks.Task startInstanceFromUI(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId, @Nullable Long userId)
- Specified by:
startInstanceFromUI
in interfaceStartInstanceUserAction
-
getStartingInstances
public Collection<StartInstanceUserAction.StartingInstance> getStartingInstances(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId)
- Specified by:
getStartingInstances
in interfaceStartInstanceUserAction
-
tryCancelStartingInstanceTask
public boolean tryCancelStartingInstanceTask(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId, @NotNull String instanceId)
Description copied from interface:StartInstanceUserAction
tries to cancel a starting instance task- Specified by:
tryCancelStartingInstanceTask
in interfaceStartInstanceUserAction
- Returns:
- true if a task with given parameters was found. It doesn't mean that task was cancelled.
false means no start instance task with given data was found.
-
-