|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.carol.cmi.config.CMIConfig
@ThreadSafe public final class CMIConfig
Utility to configure the manager of the cluster view located on the server-side.
| Field Summary | |
|---|---|
static java.lang.String |
CMI_PROPERTIES
Filename for the properties. |
static int |
DEFAULT_LOAD_FACTOR
Default values for the load. |
| Method Summary | |
|---|---|
static java.lang.String |
getBindNameForDummyRegistry()
|
static java.lang.String |
getBindNameForProvider()
|
static java.util.List<java.lang.String> |
getClusterViewProviderUrls(java.lang.String protocol)
|
static java.lang.String |
getCMIAdminMBeanName()
|
static java.lang.String |
getCMIProperty(java.lang.String key)
Get the value for a CMI property. |
static java.lang.String |
getConfDir()
|
static int |
getLoadFactor()
|
static java.lang.String |
getMBeanDomainName()
|
static int |
getRefreshTime()
|
static java.lang.Class<? extends org.ow2.carol.cmi.controller.server.ServerClusterViewManager> |
getServerClusterViewManagerClass()
|
static void |
init()
Initializes the CMI properties with reading the file cmi.properties. |
static boolean |
isConfigured()
|
static boolean |
isConnectorEnabled(java.lang.String protocol)
|
static boolean |
isEmbedded()
|
static boolean |
isProviderBound()
|
static boolean |
isRegistryBound()
|
static boolean |
isReplicationEnabled()
|
static void |
setConfDir(java.lang.String confDir)
Set the path to get the configuration files. |
static void |
setEmbedded()
Set that CMI is embedded. |
static void |
setProperties(java.util.Properties props)
Initializes the CMI properties with reading the given properties. |
static void |
setProperties(java.net.URL url)
Initializes the CMI properties with reading the file at a given location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CMI_PROPERTIES
public static final int DEFAULT_LOAD_FACTOR
| Method Detail |
|---|
public static void init()
throws CMIConfigException
CMIConfigException - if the configuration files are not correct
public static void setProperties(java.util.Properties props)
throws CMIConfigException
props - properties
CMIConfigException - if the configuration files are not correct
public static void setProperties(java.net.URL url)
throws CMIConfigException
url - the URL to load CMI configuration
CMIConfigException - If the configuration files are not correct.public static int getRefreshTime()
public static java.lang.Class<? extends org.ow2.carol.cmi.controller.server.ServerClusterViewManager> getServerClusterViewManagerClass()
public static java.lang.String getCMIProperty(java.lang.String key)
key - The key.
public static java.lang.String getMBeanDomainName()
public static java.lang.String getCMIAdminMBeanName()
public static boolean isConnectorEnabled(java.lang.String protocol)
protocol - a protocol name
public static boolean isProviderBound()
public static java.lang.String getBindNameForProvider()
public static java.lang.String getBindNameForDummyRegistry()
public static int getLoadFactor()
public static boolean isConfigured()
public static boolean isRegistryBound()
public static boolean isEmbedded()
public static void setEmbedded()
public static java.util.List<java.lang.String> getClusterViewProviderUrls(java.lang.String protocol)
protocol - a protocol name
public static boolean isReplicationEnabled()
public static java.lang.String getConfDir()
public static void setConfDir(java.lang.String confDir)
confDir - the path to get the configuration files
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||