com.atlassian.bamboo
Enum ServerLifecycleState

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

@PublicApi
public enum ServerLifecycleState
extends java.lang.Enum<ServerLifecycleState>

Represents the server life cycle

Since:
3.3

Enum Constant Summary
PAUSED
          The server is paused.
PAUSING
          The server is transitioning to PAUSED.
RUNNING
          The server is running
SETUP
          The system is undergoing setup
STARTING
          The server is starting
 
Method Summary
 java.lang.String getSetByUser()
           
static ServerLifecycleState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ServerLifecycleState[] 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

SETUP

public static final ServerLifecycleState SETUP
The system is undergoing setup

Since:
3.3

STARTING

public static final ServerLifecycleState STARTING
The server is starting

Since:
3.3

RUNNING

public static final ServerLifecycleState RUNNING
The server is running

Since:
3.3

PAUSING

public static final ServerLifecycleState PAUSING
The server is transitioning to PAUSED. No builds can be queued at this time.

Since:
3.3

PAUSED

public static final ServerLifecycleState PAUSED
The server is paused. No builds are queued or building.

Since:
3.3
Method Detail

values

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

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

valueOf

public static ServerLifecycleState 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

getSetByUser

@Nullable
public java.lang.String getSetByUser()
Returns:
the username that changed the state. Can be null if no user changed the state


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.