Interface StartInstanceUserAction
-
- All Known Implementing Classes:
StartInstanceUserActionImpl
public interface StartInstanceUserAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StartInstanceUserAction.StartingInstance
-
Field Summary
Fields Modifier and Type Field Description static String
START_CLOUD_INSTANCE_PROCESSED_EVENT
static String
START_CLOUD_INSTANCE_TASK
-
Method Summary
All Methods Instance Methods Abstract 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
-
START_CLOUD_INSTANCE_TASK
static final String START_CLOUD_INSTANCE_TASK
- See Also:
- Constant Field Values
-
START_CLOUD_INSTANCE_PROCESSED_EVENT
static final String START_CLOUD_INSTANCE_PROCESSED_EVENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
startInstanceFromUI
@NotNull MultiNodeTasks.Task startInstanceFromUI(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId, @Nullable Long userId)
-
getStartingInstances
@NotNull Collection<StartInstanceUserAction.StartingInstance> getStartingInstances(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId)
-
tryCancelStartingInstanceTask
boolean tryCancelStartingInstanceTask(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId, @NotNull String instanceId)
tries to cancel a starting instance task- Parameters:
projectId
-profileId
-imageId
-instanceId
-- 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.
-
-