com.bigdata.concurrent
Enum NonBlockingLockManager.RunState

java.lang.Object
  extended by java.lang.Enum<NonBlockingLockManager.RunState>
      extended by com.bigdata.concurrent.NonBlockingLockManager.RunState
All Implemented Interfaces:
Serializable, Comparable<NonBlockingLockManager.RunState>
Enclosing class:
NonBlockingLockManager<R extends Comparable<R>>

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

Run states for the NonBlockingLockManager.

Version:
$Id: NonBlockingLockManager.java 4280 2011-03-08 15:06:58Z 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(NonBlockingLockManager.RunState newval)
           
 int value()
           
static NonBlockingLockManager.RunState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NonBlockingLockManager.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

Starting

public static final NonBlockingLockManager.RunState Starting
During startup. Tasks are NOT accepted.


Running

public static final NonBlockingLockManager.RunState Running
While running (aka open). Tasks are accepted and submitted for execution once they hold their locks.


Shutdown

public static final NonBlockingLockManager.RunState Shutdown
When shutting down normally. New tasks are not accepted but Futures are still monitored for completion and waiting tasks will eventually be granted their locks and execute on the delegate.


ShutdownNow

public static final NonBlockingLockManager.RunState ShutdownNow
When shutting down immediately. New tasks are not accepted, tasks waiting for their locks are cancelled (they will not execute) and Futures for running tasks are cancelled (they are interrupted).


Halted

public static final NonBlockingLockManager.RunState Halted
When halted. New tasks are not accepted. No tasks are waiting. Any Futures were cancelled.

Method Detail

values

public static NonBlockingLockManager.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 (NonBlockingLockManager.RunState c : NonBlockingLockManager.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 NonBlockingLockManager.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

value

public int value()

isTransitionLegal

public boolean isTransitionLegal(NonBlockingLockManager.RunState newval)


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