org.ow2.cmi.config
Enum CMIProperty

java.lang.Object
  extended by java.lang.Enum<CMIProperty>
      extended by org.ow2.cmi.config.CMIProperty
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CMIProperty>

public enum CMIProperty
extends java.lang.Enum<CMIProperty>

Properties to configure CMI.

Author:
Loris Bouzonnet

Enum Constant Summary
AUTOSTART
          Property name for specifying if the CMI Server is automatically started when creating a first CMI context.
CLUSTER_VIEW_PROVIDER_URLS
          Property name to declare a list of provider URLs to access to a provider of the cluster view.
CONF_DIR
          Property to indicate the path to get the configuration files.
CONF_FILENAME
          Property to indicate the configuration filename.
DEPLOY_DIRECTORY
          Property name for specifying the directory where load balancing archives will be deployed.
DUMMY_CONTEXT_BIND_NAME
          Property name to declare name of the dummy context that is used to bind it.
LOCAL_REGISTRY_URL
          Property to define the local registry URL.
PROVIDER_BIND_NAME
          Property name to declare name of the ClientClusterViewProvider that is used to bind it.
REPLICATION_MANAGER_CLASS
          Property name for specifying the ServerClusterViewManager.
SERVER_MODE
          Property to specify if we are in server mode.
WRAPPED_INITIAL_CONTEXT_FACTORY
          Property to define the wrapped InitialContextFactory.
WRAPPED_PROTOCOL
          Property to define the protocol.
 
Method Summary
 java.lang.String getPropertyName()
           
 java.lang.String toString()
           
static CMIProperty valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CMIProperty[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTOSTART

public static final CMIProperty AUTOSTART
Property name for specifying if the CMI Server is automatically started when creating a first CMI context.


REPLICATION_MANAGER_CLASS

public static final CMIProperty REPLICATION_MANAGER_CLASS
Property name for specifying the ServerClusterViewManager.


DEPLOY_DIRECTORY

public static final CMIProperty DEPLOY_DIRECTORY
Property name for specifying the directory where load balancing archives will be deployed.


PROVIDER_BIND_NAME

public static final CMIProperty PROVIDER_BIND_NAME
Property name to declare name of the ClientClusterViewProvider that is used to bind it.


DUMMY_CONTEXT_BIND_NAME

public static final CMIProperty DUMMY_CONTEXT_BIND_NAME
Property name to declare name of the dummy context that is used to bind it.


CLUSTER_VIEW_PROVIDER_URLS

public static final CMIProperty CLUSTER_VIEW_PROVIDER_URLS
Property name to declare a list of provider URLs to access to a provider of the cluster view. This property must be defined in the case of servers using a cmi client (ie having a client-side manager).


CONF_DIR

public static final CMIProperty CONF_DIR
Property to indicate the path to get the configuration files.


CONF_FILENAME

public static final CMIProperty CONF_FILENAME
Property to indicate the configuration filename.


WRAPPED_INITIAL_CONTEXT_FACTORY

public static final CMIProperty WRAPPED_INITIAL_CONTEXT_FACTORY
Property to define the wrapped InitialContextFactory.


WRAPPED_PROTOCOL

public static final CMIProperty WRAPPED_PROTOCOL
Property to define the protocol.


LOCAL_REGISTRY_URL

public static final CMIProperty LOCAL_REGISTRY_URL
Property to define the local registry URL.


SERVER_MODE

public static final CMIProperty SERVER_MODE
Property to specify if we are in server mode.

Method Detail

values

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

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

valueOf

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<CMIProperty>
Returns:
the name of property

getPropertyName

public java.lang.String getPropertyName()
Returns:
the name of property


Copyright © 2009 OW2 Consortium. All Rights Reserved.