Class StartInstanceUserAction.StartingInstance
- java.lang.Object
-
- jetbrains.buildServer.clouds.server.impl.instances.StartInstanceUserAction.StartingInstance
-
- All Implemented Interfaces:
CloudErrorProvider,CloudInstance
- Enclosing interface:
- StartInstanceUserAction
public static class StartInstanceUserAction.StartingInstance extends Object implements CloudInstance
-
-
Constructor Summary
Constructors Constructor Description StartingInstance(String projectId, String profileId, String imageId, String instanceId, MultiNodeTasks.SubmittedTask submittedTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsAgent(AgentDescription agent)Checks is the agent is running under this instanceCloudErrorInfogetErrorInfo()Returns currect error info ifCloudInstance.getStatus()returnsInstanceStatus.ERRORorInstanceStatus.ERROR_CANNOT_STOPvalue.CloudImagegetImage()Returns the reference to the handle of the image this instance started from.StringgetImageId()Returns the image identifierStringgetInstanceId()Returns the instance identifier.StringgetName()Name of the instance.StringgetNetworkIdentity()Returns the instance's DNS name (if one exists) or IPv4 address (if no DNS names).StringgetProfileId()StringgetProjectId()DategetStartedTime()Returns the instance started time.InstanceStatusgetStatus()current status of the instanceMultiNodeTasks.SubmittedTaskgetSubmittedTask()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.clouds.CloudInstance
getInstanceType
-
-
-
-
Constructor Detail
-
StartingInstance
public StartingInstance(@NotNull String projectId, @NotNull String profileId, @NotNull String imageId, @NotNull String instanceId, @NotNull MultiNodeTasks.SubmittedTask submittedTask)
-
-
Method Detail
-
getSubmittedTask
@NotNull public MultiNodeTasks.SubmittedTask getSubmittedTask()
-
getProfileId
@NotNull public String getProfileId()
-
getProjectId
@NotNull public String getProjectId()
-
getInstanceId
@NotNull public String getInstanceId()
Description copied from interface:CloudInstanceReturns the instance identifier.
Must be unique within the profile.- Specified by:
getInstanceIdin interfaceCloudInstance- Returns:
- instance identifier.
-
getName
@NotNull public String getName()
Description copied from interface:CloudInstanceName of the instance. Name may change in the time.- Specified by:
getNamein interfaceCloudInstance- Returns:
- name
-
getImageId
@NotNull public String getImageId()
Description copied from interface:CloudInstanceReturns the image identifier- Specified by:
getImageIdin interfaceCloudInstance- Returns:
- image identifier.
- See Also:
CloudImage.getId()
-
getImage
@NotNull public CloudImage getImage()
Description copied from interface:CloudInstanceReturns the reference to the handle of the image this instance started from.- Specified by:
getImagein interfaceCloudInstance- Returns:
- reference to the image descriptor (all instances started from one image returns a reference to the same java object).
-
getStartedTime
@NotNull public Date getStartedTime()
Description copied from interface:CloudInstanceReturns the instance started time.- Specified by:
getStartedTimein interfaceCloudInstance- Returns:
- started time.
-
getNetworkIdentity
@Nullable public String getNetworkIdentity()
Description copied from interface:CloudInstanceReturns the instance's DNS name (if one exists) or IPv4 address (if no DNS names).- Specified by:
getNetworkIdentityin interfaceCloudInstance- Returns:
- DNS name (in form "host.domain.com") or IPv4 address (in form "12.34.56.78"), or null if the identity is unknown at this moment. Never returns empty strings.
-
getStatus
@NotNull public InstanceStatus getStatus()
Description copied from interface:CloudInstancecurrent status of the instance- Specified by:
getStatusin interfaceCloudInstance- Returns:
- status
-
getErrorInfo
@Nullable public CloudErrorInfo getErrorInfo()
Description copied from interface:CloudInstanceReturns currect error info ifCloudInstance.getStatus()returnsInstanceStatus.ERRORorInstanceStatus.ERROR_CANNOT_STOPvalue.- Specified by:
getErrorInfoin interfaceCloudErrorProvider- Specified by:
getErrorInfoin interfaceCloudInstance- Returns:
- error info or null
-
containsAgent
public boolean containsAgent(@NotNull AgentDescription agent)Description copied from interface:CloudInstanceChecks is the agent is running under this instance- Specified by:
containsAgentin interfaceCloudInstance- Parameters:
agent- agent to check- Returns:
- true is agent is running under the instance
-
-