org.ow2.petals.kernel.configuration
Enum ContainerConfiguration.RegistryMode

java.lang.Object
  extended by java.lang.Enum<ContainerConfiguration.RegistryMode>
      extended by org.ow2.petals.kernel.configuration.ContainerConfiguration.RegistryMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContainerConfiguration.RegistryMode>
Enclosing class:
ContainerConfiguration

public static enum ContainerConfiguration.RegistryMode
extends java.lang.Enum<ContainerConfiguration.RegistryMode>

Registry (and maybe more) policy - related stuff.


Enum Constant Summary
MASTER
          Master mode for master / slave based strategy.
PEER
          Peer mode, used for flooding based strategy.
SLAVE
          Slave mode for master / slave based strategy.
STANDALONE
          Standalone mode.
 
Method Summary
static ContainerConfiguration.RegistryMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContainerConfiguration.RegistryMode[] 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

STANDALONE

public static final ContainerConfiguration.RegistryMode STANDALONE
Standalone mode.


PEER

public static final ContainerConfiguration.RegistryMode PEER
Peer mode, used for flooding based strategy.


MASTER

public static final ContainerConfiguration.RegistryMode MASTER
Master mode for master / slave based strategy.


SLAVE

public static final ContainerConfiguration.RegistryMode SLAVE
Slave mode for master / slave based strategy.

Method Detail

values

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

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

valueOf

public static ContainerConfiguration.RegistryMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.