org.alfresco.bm.server
Enum ConfigConstants.RunState

java.lang.Object
  extended by java.lang.Enum<ConfigConstants.RunState>
      extended by org.alfresco.bm.server.ConfigConstants.RunState
All Implemented Interfaces:
Serializable, Comparable<ConfigConstants.RunState>
Enclosing interface:
ConfigConstants

public static enum ConfigConstants.RunState
extends Enum<ConfigConstants.RunState>

An instruction to the main process on what action to take for the server.

Since:
1.0
Author:
Derek Hulley

Enum Constant Summary
PAUSE
          The server will run but without any benchmark processing.
RESTART
          Restart the server; not an error condition.
RUN
          The server will run and process benchmark events.
STOP
          Stop the server completely; requires a manual restart.
 
Method Summary
static ConfigConstants.RunState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigConstants.RunState[] 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

RUN

public static final ConfigConstants.RunState RUN
The server will run and process benchmark events.


PAUSE

public static final ConfigConstants.RunState PAUSE
The server will run but without any benchmark processing.


STOP

public static final ConfigConstants.RunState STOP
Stop the server completely; requires a manual restart.


RESTART

public static final ConfigConstants.RunState RESTART
Restart the server; not an error condition.

Method Detail

values

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

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

valueOf

public static ConfigConstants.RunState 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 name
NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.