org.ow2.carol.cmi.config
Class CentralizedConfig

java.lang.Object
  extended by org.ow2.carol.cmi.config.CentralizedConfig

@Immutable
public final class CentralizedConfig
extends java.lang.Object

Centralizes configuration of each module.

Author:
The new CMI team

Method Summary
static void setMBean(java.lang.String domainName, java.lang.String serverName, java.lang.String agentId)
          Initializes the CMI runtime configuration for the MBean.
static void setProperties(java.util.Properties props)
          Initializes the CMI properties with reading the given properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setProperties

public static void setProperties(java.util.Properties props)
                          throws org.ow2.carol.cmi.config.CMIConfigException
Initializes the CMI properties with reading the given properties.

Parameters:
props - properties
Throws:
CMIConfigException - if the configuration files are not correct

setMBean

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

Parameters:
domainName - the name of the JOnAS domain
serverName - the name of the server for creating MBeans
agentId - the agent identifier of the MBeanServer to retrieve


Copyright © 2008 OW2 Consortium. All Rights Reserved.