Class StopInstanceQueueImpl
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.instances.StopInstanceQueueImpl
-
- All Implemented Interfaces:
StopInstanceQueue
public class StopInstanceQueueImpl extends Object implements StopInstanceQueue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.clouds.server.impl.instances.StopInstanceQueue
StopInstanceQueue.StopInstanceData
-
-
Field Summary
Fields Modifier and Type Field Description static String
ORDER_ID
-
Fields inherited from interface jetbrains.buildServer.clouds.server.impl.instances.StopInstanceQueue
STOP_INSTANCE_TASK, STOP_PROFILE_INSTANCES_TASK
-
-
Constructor Summary
Constructors Constructor Description StopInstanceQueueImpl(StopInstanceAction stopInstanceAction, MultiNodeTasks nodeTasks, CloudManagerBase manager, EventDispatcher<BuildServerListener> events, ExecutorServices executorServices, ServerResponsibility serverResponsibility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
stopAllInstances(Collection<CloudProfile> profiles, TerminateInstanceReason reason)
void
stopInstance(String projectId, String profileId, String imageId, String instanceId, TerminateInstanceReason reason)
void
stopProfileInstances(String projectId, String profileId, TerminateInstanceReason reason)
protected void
submitStopInstanceTask(String projectId, String profileId, String imageId, String instanceId, TerminateInstanceReason reason)
-
-
-
Field Detail
-
ORDER_ID
public static final String ORDER_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StopInstanceQueueImpl
public StopInstanceQueueImpl(@NotNull StopInstanceAction stopInstanceAction, @NotNull MultiNodeTasks nodeTasks, @NotNull CloudManagerBase manager, @NotNull EventDispatcher<BuildServerListener> events, @NotNull ExecutorServices executorServices, @NotNull ServerResponsibility serverResponsibility)
-
-
Method Detail
-
stopInstance
public void stopInstance(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId, @NotNull String instanceId, @NotNull TerminateInstanceReason reason)
- Specified by:
stopInstance
in interfaceStopInstanceQueue
-
stopAllInstances
public void stopAllInstances(@NotNull Collection<CloudProfile> profiles, @NotNull TerminateInstanceReason reason) throws FailedToStopInstanceException
- Specified by:
stopAllInstances
in interfaceStopInstanceQueue
- Throws:
FailedToStopInstanceException
-
stopProfileInstances
public void stopProfileInstances(@NotNull String projectId, @NotNull String profileId, @NotNull TerminateInstanceReason reason) throws FailedToStopInstanceException
- Specified by:
stopProfileInstances
in interfaceStopInstanceQueue
- Throws:
FailedToStopInstanceException
-
submitStopInstanceTask
protected void submitStopInstanceTask(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId, @NotNull String instanceId, @NotNull TerminateInstanceReason reason)
-
-