com.atlassian.bamboo.agent.elastic.server
Enum RemoteElasticInstanceState

java.lang.Object
  extended by java.lang.Enum<RemoteElasticInstanceState>
      extended by com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstanceState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RemoteElasticInstanceState>

public enum RemoteElasticInstanceState
extends java.lang.Enum<RemoteElasticInstanceState>

Represents the state of a RemoteElasticInstance


Enum Constant Summary
BIDDING
          Instance is being bid upon
FAILED_TO_START
          The RemoteElasticInstance, for whatever reason, failed to start
IDENTIFIED
          The RemoteElasticInstance now has an EC2 instance ID.
INITIAL
          The initial state when the RemoteElasticInstance has been requested
RUNNING
          The RemoteElasticInstance now has an EC2 instance ID and the instance is now running
SHUTTING_DOWN
          The RemoteElasticInstance is shutting down
STARTING
          The RemoteElasticInstance is in the process of starting up.
STOPPED
           
STOPPING
           
TERMINATED
          The RemoteElasticInstance has terminated
UNKNOWN
          The State of the RemoteElasticInstance is unknown
 
Method Summary
 boolean isFinal()
           
static RemoteElasticInstanceState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RemoteElasticInstanceState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INITIAL

public static final RemoteElasticInstanceState INITIAL
The initial state when the RemoteElasticInstance has been requested


BIDDING

public static final RemoteElasticInstanceState BIDDING
Instance is being bid upon


STARTING

public static final RemoteElasticInstanceState STARTING
The RemoteElasticInstance is in the process of starting up. In this state no EC instance ID has been set.


IDENTIFIED

public static final RemoteElasticInstanceState IDENTIFIED
The RemoteElasticInstance now has an EC2 instance ID.


RUNNING

public static final RemoteElasticInstanceState RUNNING
The RemoteElasticInstance now has an EC2 instance ID and the instance is now running


STOPPING

public static final RemoteElasticInstanceState STOPPING

STOPPED

public static final RemoteElasticInstanceState STOPPED

SHUTTING_DOWN

public static final RemoteElasticInstanceState SHUTTING_DOWN
The RemoteElasticInstance is shutting down


TERMINATED

public static final RemoteElasticInstanceState TERMINATED
The RemoteElasticInstance has terminated


FAILED_TO_START

public static final RemoteElasticInstanceState FAILED_TO_START
The RemoteElasticInstance, for whatever reason, failed to start


UNKNOWN

public static final RemoteElasticInstanceState UNKNOWN
The State of the RemoteElasticInstance is unknown

Method Detail

values

public static RemoteElasticInstanceState[] 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 (RemoteElasticInstanceState c : RemoteElasticInstanceState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RemoteElasticInstanceState valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isFinal

public boolean isFinal()


Copyright © 2012 Atlassian. All Rights Reserved.