com.bigdata.service
Enum TxServiceRunState

java.lang.Object
  extended by java.lang.Enum<TxServiceRunState>
      extended by com.bigdata.service.TxServiceRunState
All Implemented Interfaces:
Serializable, Comparable<TxServiceRunState>

public enum TxServiceRunState
extends Enum<TxServiceRunState>

Run states for the AbstractTransactionService.

Version:
$Id: TxServiceRunState.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Enum Constant Summary
Halted
          When halted.
Running
          While running (aka open).
Shutdown
          When shutting down normally.
ShutdownNow
          When shutting down immediately.
Starting
          During startup.
 
Method Summary
 boolean isTransitionLegal(TxServiceRunState newval)
           
 int value()
           
static TxServiceRunState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TxServiceRunState[] 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

Starting

public static final TxServiceRunState Starting
During startup.


Running

public static final TxServiceRunState Running
While running (aka open).


Shutdown

public static final TxServiceRunState Shutdown
When shutting down normally.


ShutdownNow

public static final TxServiceRunState ShutdownNow
When shutting down immediately.


Halted

public static final TxServiceRunState Halted
When halted.

Method Detail

values

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

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

valueOf

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

value

public int value()

isTransitionLegal

public boolean isTransitionLegal(TxServiceRunState newval)


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.