Package jetbrains.buildServer.clouds
Enum InstanceStatus
- java.lang.Object
-
- java.lang.Enum<InstanceStatus>
-
- jetbrains.buildServer.clouds.InstanceStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<InstanceStatus>
public enum InstanceStatus extends Enum<InstanceStatus>
Instace statuses
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR
ERROR_CANNOT_STOP
Represents error status of instance where 'stop' action is not applicableRESTARTING
RUNNING
SCHEDULED_TO_START
SCHEDULED_TO_STOP
STARTING
STOPPED
STOPPING
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getText()
Text to be shown on the web pagesboolean
isCanManuallyTerminate()
Indicates whether this instance can be stopped manually via web interfaceboolean
isCanTerminate()
See belowboolean
isError()
boolean
isStartingOrStarted()
String
toString()
static InstanceStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static InstanceStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final InstanceStatus UNKNOWN
-
SCHEDULED_TO_START
public static final InstanceStatus SCHEDULED_TO_START
-
STARTING
public static final InstanceStatus STARTING
-
RUNNING
public static final InstanceStatus RUNNING
-
RESTARTING
public static final InstanceStatus RESTARTING
-
SCHEDULED_TO_STOP
public static final InstanceStatus SCHEDULED_TO_STOP
-
STOPPING
public static final InstanceStatus STOPPING
-
STOPPED
public static final InstanceStatus STOPPED
-
ERROR
public static final InstanceStatus ERROR
-
ERROR_CANNOT_STOP
public static final InstanceStatus ERROR_CANNOT_STOP
Represents error status of instance where 'stop' action is not applicable- Since:
- 7.1
-
-
Method Detail
-
values
public static InstanceStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InstanceStatus c : InstanceStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InstanceStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getText
@NotNull public String getText()
Text to be shown on the web pages- Returns:
- see above
-
getName
@NotNull public String getName()
-
isCanTerminate
public boolean isCanTerminate()
See below- Returns:
- true if instance can be terminated
-
isCanManuallyTerminate
public boolean isCanManuallyTerminate()
Indicates whether this instance can be stopped manually via web interface- Returns:
- true if we need to show stop link for this instance on cloud details page.
-
isStartingOrStarted
public boolean isStartingOrStarted()
-
isError
public boolean isError()
- Returns:
- true if status is error, i.e.
ERROR
orERROR_CANNOT_STOP
- Since:
- 7.1
-
toString
public String toString()
- Overrides:
toString
in classEnum<InstanceStatus>
-
-