Berkeley DB Java Edition
version 5.0.34

com.sleepycat.je.rep
Enum NodeType

java.lang.Object
  extended by java.lang.Enum<NodeType>
      extended by com.sleepycat.je.rep.NodeType
All Implemented Interfaces:
Serializable, Comparable<NodeType>

public enum NodeType
extends Enum<NodeType>

The different types of nodes that can be in a replication group.


Enum Constant Summary
ELECTABLE
          A full fledged member of the replication group with an associated replicated environment that can serve as both a Master and a Replica.
MONITOR
          A node that passively listens for the results of elections, but does not participate in them.
 
Method Summary
static NodeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeType[] 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

MONITOR

public static final NodeType MONITOR
A node that passively listens for the results of elections, but does not participate in them. It does not have a replicated environment associated with it.

See Also:
Monitor

ELECTABLE

public static final NodeType ELECTABLE
A full fledged member of the replication group with an associated replicated environment that can serve as both a Master and a Replica.

Method Detail

values

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

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

valueOf

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

Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.