org.apache.geronimo.kernel.config
Interface ConfigurationManager

All Known Implementing Classes:
ConfigurationManagerImpl

public interface ConfigurationManager

Version:
$Revision: 1.6 $ $Date: 2004/06/02 19:50:41 $

Method Summary
 javax.management.ObjectName getConfigObjectName(URI configID)
           
 boolean isLoaded(URI configID)
           
 List listConfigurations(javax.management.ObjectName store)
          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)
           
 

Method Detail

isLoaded

public boolean isLoaded(URI configID)

listStores

public List listStores()
Return a list of the stores this manager knows about.

Returns:
a List of the stores this manager controls

listConfigurations

public List listConfigurations(javax.management.ObjectName store)
                        throws NoSuchStoreException
Return a list of the configurations in a specific store.

Parameters:
store - the store to list
Returns:
a List of all the configurations in the store
Throws:
NoSuchStoreException - if the store could not be located

getConfigObjectName

public javax.management.ObjectName getConfigObjectName(URI configID)
                                                throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException

load

public javax.management.ObjectName load(URI configID)
                                 throws NoSuchConfigException,
                                        IOException,
                                        InvalidConfigException
Throws:
NoSuchConfigException
IOException
InvalidConfigException

load

public javax.management.ObjectName load(org.apache.geronimo.gbean.jmx.GBeanMBean config,
                                        URL rootURL)
                                 throws InvalidConfigException
Throws:
InvalidConfigException

load

public void load(org.apache.geronimo.gbean.jmx.GBeanMBean config,
                 URL rootURL,
                 javax.management.ObjectName configName)
          throws InvalidConfigException
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.

Parameters:
config - the GBeanMBean representing the Configuration
rootURL - the URL to be used to resolve relative paths in the configuration
configName - 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
Throws:
NoSuchConfigException
IOException
InvalidConfigException

unload

public void unload(URI configID)
            throws NoSuchConfigException
Throws:
NoSuchConfigException

unload

public void unload(javax.management.ObjectName configName)
            throws NoSuchConfigException
Throws:
NoSuchConfigException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.