org.apache.geronimo.kernel.config
Class ConfigurationManagerImpl
java.lang.Object
org.apache.geronimo.kernel.config.ConfigurationManagerImpl
- All Implemented Interfaces:
- ConfigurationManager, org.apache.geronimo.gbean.GBeanLifecycle
- public class ConfigurationManagerImpl
- extends Object
- implements ConfigurationManager, org.apache.geronimo.gbean.GBeanLifecycle
- Version:
- $Revision: 1.12 $ $Date: 2004/09/02 11:03:18 $
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Method Summary |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
javax.management.ObjectName |
getConfigObjectName(URI configID)
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
boolean |
isLoaded(URI configID)
|
List |
listConfigurations(javax.management.ObjectName storeName)
Return a list of the configurations in a specific store. |
List |
listStores()
Return a list of the stores this manager knows about. |
javax.management.ObjectName |
load(org.apache.geronimo.gbean.jmx.GBeanMBean config,
URL rootURL)
|
void |
load(org.apache.geronimo.gbean.jmx.GBeanMBean config,
URL rootURL,
javax.management.ObjectName configName)
Load the supplied Configuration into the Kernel and override the default JMX name. |
javax.management.ObjectName |
load(URI configID)
|
List |
loadRecursive(URI configID)
|
void |
unload(javax.management.ObjectName configName)
|
void |
unload(URI configID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
ConfigurationManagerImpl
public ConfigurationManagerImpl(Kernel kernel,
Collection stores)
listStores
public List listStores()
- Description copied from interface:
ConfigurationManager
- Return a list of the stores this manager knows about.
- Specified by:
listStores
in interface ConfigurationManager
- Returns:
- a List of the stores this manager controls
listConfigurations
public List listConfigurations(javax.management.ObjectName storeName)
throws NoSuchStoreException
- Description copied from interface:
ConfigurationManager
- Return a list of the configurations in a specific store.
- Specified by:
listConfigurations
in interface ConfigurationManager
- Parameters:
storeName
- the store to list
- Returns:
- a List of all the configurations in the store
- Throws:
NoSuchStoreException
- if the store could not be located
isLoaded
public boolean isLoaded(URI configID)
- Specified by:
isLoaded
in interface ConfigurationManager
load
public javax.management.ObjectName load(URI configID)
throws NoSuchConfigException,
IOException,
InvalidConfigException
- Specified by:
load
in interface ConfigurationManager
- Throws:
NoSuchConfigException
IOException
InvalidConfigException
load
public javax.management.ObjectName load(org.apache.geronimo.gbean.jmx.GBeanMBean config,
URL rootURL)
throws InvalidConfigException
- Specified by:
load
in interface ConfigurationManager
- Throws:
InvalidConfigException
load
public void load(org.apache.geronimo.gbean.jmx.GBeanMBean config,
URL rootURL,
javax.management.ObjectName configName)
throws InvalidConfigException
- Description copied from interface:
ConfigurationManager
- Load the supplied Configuration into the Kernel and override the default JMX name.
This method should be used with discretion as it is possible to create
Configurations that cannot be located by management or monitoring tools.
- Specified by:
load
in interface ConfigurationManager
- Parameters:
config
- the GBeanMBean representing the ConfigurationrootURL
- the URL to be used to resolve relative paths in the configurationconfigName
- the JMX ObjectName to register the Configuration under
- Throws:
InvalidConfigException
- if the Configuration is not valid
loadRecursive
public List loadRecursive(URI configID)
throws NoSuchConfigException,
IOException,
InvalidConfigException
- Specified by:
loadRecursive
in interface ConfigurationManager
- Throws:
NoSuchConfigException
IOException
InvalidConfigException
unload
public void unload(URI configID)
throws NoSuchConfigException
- Specified by:
unload
in interface ConfigurationManager
- Throws:
NoSuchConfigException
unload
public void unload(javax.management.ObjectName configName)
throws NoSuchConfigException
- Specified by:
unload
in interface ConfigurationManager
- Throws:
NoSuchConfigException
getConfigObjectName
public javax.management.ObjectName getConfigObjectName(URI configID)
throws javax.management.MalformedObjectNameException
- Specified by:
getConfigObjectName
in interface ConfigurationManager
- Throws:
javax.management.MalformedObjectNameException
doStart
public void doStart()
- Specified by:
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
doStop
public void doStop()
- Specified by:
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.