org.objectweb.carol.cmi
Class ServerConfig

java.lang.Object
  extended byorg.objectweb.carol.cmi.ServerConfig

public class ServerConfig
extends java.lang.Object

The ServerConfig provides a method to give configuration information to the CMI runtime.

Author:
Simon Nieuviarts

Field Summary
static int DEFAULT_LOAD_FACTOR
          Default values for the load
static java.lang.String JGROUPS_CONF_PROPERTY
          Jgroups configuration file property name
static java.lang.String MULTICAST_ADDRESS_PROPERTY
          Multicast address property name
static java.lang.String MULTICAST_GROUPNAME_PROPERTY
          Multicast group name property name
static java.lang.String MULTICAST_ITF_PROPERTY
          Multicast interface property name
static java.lang.String RR_FACTOR_PROPERTY
          Multicast round robin factor property name
static java.lang.String STUB_DEBUG_PROPERTY
          Multicast debug property name
 
Method Summary
static void setMBean(java.lang.String domainName, java.lang.String serverName)
          Intializes the CMI runtime configuration for the MBean
static void setProperties(java.util.Properties pr)
          Intializes the CMI runtime configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOAD_FACTOR

public static final int DEFAULT_LOAD_FACTOR
Default values for the load

See Also:
Constant Field Values

MULTICAST_ADDRESS_PROPERTY

public static final java.lang.String MULTICAST_ADDRESS_PROPERTY
Multicast address property name

See Also:
Constant Field Values

MULTICAST_ITF_PROPERTY

public static final java.lang.String MULTICAST_ITF_PROPERTY
Multicast interface property name

See Also:
Constant Field Values

MULTICAST_GROUPNAME_PROPERTY

public static final java.lang.String MULTICAST_GROUPNAME_PROPERTY
Multicast group name property name

See Also:
Constant Field Values

RR_FACTOR_PROPERTY

public static final java.lang.String RR_FACTOR_PROPERTY
Multicast round robin factor property name

See Also:
Constant Field Values

STUB_DEBUG_PROPERTY

public static final java.lang.String STUB_DEBUG_PROPERTY
Multicast debug property name

See Also:
Constant Field Values

JGROUPS_CONF_PROPERTY

public static final java.lang.String JGROUPS_CONF_PROPERTY
Jgroups configuration file property name

See Also:
Constant Field Values
Method Detail

setProperties

public static void setProperties(java.util.Properties pr)
                          throws ServerConfigException
Intializes the CMI runtime configuration. Can be called succesfully only one time.

Parameters:
pr - the configuration properties
Throws:
ServerConfigException - if an invalid configuration is specified

setMBean

public static void setMBean(java.lang.String domainName,
                            java.lang.String serverName)
Intializes the CMI runtime configuration for the MBean

Parameters:
domainName - the name of the JOnAS domain
serverName - the name of the server for creating mbeans
Throws:
ServerConfigException - if an invalid configuration is specified