org.apache.zookeeper
Enum Watcher.Event.KeeperState

java.lang.Object
  extended by java.lang.Enum<Watcher.Event.KeeperState>
      extended by org.apache.zookeeper.Watcher.Event.KeeperState
All Implemented Interfaces:
Serializable, Comparable<Watcher.Event.KeeperState>
Enclosing interface:
Watcher.Event

public static enum Watcher.Event.KeeperState
extends Enum<Watcher.Event.KeeperState>

Enumeration of states the ZooKeeper may be at the event


Enum Constant Summary
Disconnected
           
Expired
           
NoSyncConnected
           
SyncConnected
           
Unknown
           
 
Method Summary
static Watcher.Event.KeeperState fromInt(int intValue)
           
 int getIntValue()
           
static Watcher.Event.KeeperState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Watcher.Event.KeeperState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Unknown

public static final Watcher.Event.KeeperState Unknown

Disconnected

public static final Watcher.Event.KeeperState Disconnected

NoSyncConnected

public static final Watcher.Event.KeeperState NoSyncConnected

SyncConnected

public static final Watcher.Event.KeeperState SyncConnected

Expired

public static final Watcher.Event.KeeperState Expired
Method Detail

values

public static final Watcher.Event.KeeperState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Watcher.Event.KeeperState c : Watcher.Event.KeeperState.values())
        System.out.println(c);

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

valueOf

public static Watcher.Event.KeeperState 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

getIntValue

public int getIntValue()

fromInt

public static Watcher.Event.KeeperState fromInt(int intValue)


Copyright © 2008 The Apache Software Foundation