org.ow2.carol.cmi.config
Enum CMIProperty

java.lang.Object
  extended by java.lang.Enum<CMIProperty>
      extended by org.ow2.carol.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
CLUSTER_VIEW_PROVIDER_URLS
          Property name to declare a list of provider URLs to access to a provider of the cluster view.
CMIADMIN_MBEAN_NAME
          Property name for specifying the name of the CMIAdmin MBean.
CONF_DIR
          Property to indicate the path to get the configuration files.
DUMMY_CONTEXT_BIND_NAME
          Property name to declare name of the dummy context that is used to bind it.
LOAD_FACTOR
          Property name to declare a load factor for the server.
MBEAN_DOMAIN_NAME
          Property name for specifying the name of domain for MBeans.
PROTOCOLS_OF_THE_CONNECTORS
          Property name for declaring the protocols that must have a RMI connector.
PROVIDER_BIND_NAME
          Property name to declare name of the ClientClusterViewProvider that is used to bind it.
PROVIDER_BOUND
          Property name to indicate if a provider (of the cluster view) should be bound.
REFRESH_TIME
          Property name for defining the duration between each refresh of the client view.
REGISTRY_BOUND
          Property name to indicate if the local registry of this server can be accessed to lookup unclustered objects.
REPLICATION_ENABLED
          Property name for specifying if the replication is enabled.
REPLICATION_MANAGER_CLASS
          Property name for specifying the ServerClusterViewManager.
 
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

REPLICATION_ENABLED

public static final CMIProperty REPLICATION_ENABLED
Property name for specifying if the replication is enabled.


REFRESH_TIME

public static final CMIProperty REFRESH_TIME
Property name for defining the duration between each refresh of the client view.


REPLICATION_MANAGER_CLASS

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


MBEAN_DOMAIN_NAME

public static final CMIProperty MBEAN_DOMAIN_NAME
Property name for specifying the name of domain for MBeans.


CMIADMIN_MBEAN_NAME

public static final CMIProperty CMIADMIN_MBEAN_NAME
Property name for specifying the name of the CMIAdmin MBean.


PROTOCOLS_OF_THE_CONNECTORS

public static final CMIProperty PROTOCOLS_OF_THE_CONNECTORS
Property name for declaring the protocols that must have a RMI connector.


PROVIDER_BOUND

public static final CMIProperty PROVIDER_BOUND
Property name to indicate if a provider (of the cluster view) should be bound.


REGISTRY_BOUND

public static final CMIProperty REGISTRY_BOUND
Property name to indicate if the local registry of this server can be accessed to lookup unclustered objects.


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.


LOAD_FACTOR

public static final CMIProperty LOAD_FACTOR
Property name to declare a load factor for the server.


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.

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 © 2008 OW2 Consortium. All Rights Reserved.