org.apache.geronimo.kernel
Interface KernelMBean

All Known Implementing Classes:
Kernel

public interface KernelMBean

Version:
$Revision: 1.14 $ $Date: 2004/08/01 02:06:18 $

Method Summary
 Object getAttribute(javax.management.ObjectName objectName, String attributeName)
           
 ConfigurationManager getConfigurationManager()
           
 int getConfigurationState(URI configId)
           
 String getKernelName()
          Get the name of this kernel
 javax.management.MBeanServer getMBeanServer()
          Get the MBeanServer used by this kernel
 Object invoke(javax.management.ObjectName objectName, String methodName)
           
 Object invoke(javax.management.ObjectName objectName, String methodName, Object[] args, String[] types)
           
 boolean isLoaded(javax.management.ObjectName name)
           
 boolean isRunning()
           
 List listConfigurations(javax.management.ObjectName storeName)
          Return info about the configurations in a store.
 List listConfigurationStores()
          Return a list of the stores this kernel knows about.
 Set listGBeans(javax.management.ObjectName query)
          Return the names of GBeans that match the query.
 void loadGBean(javax.management.ObjectName name, org.apache.geronimo.gbean.jmx.GBeanMBean gbean)
          Load a specific GBean into this kernel.
 void registerShutdownHook(Runnable hook)
           
 void setAttribute(javax.management.ObjectName objectName, String attributeName, Object attributeValue)
           
 void shutdown()
           
 javax.management.ObjectName startConfiguration(URI configID)
           
 void startGBean(javax.management.ObjectName name)
          Start a specific GBean.
 void startRecursiveGBean(javax.management.ObjectName name)
          Start a specific GBean and its children.
 void stopConfiguration(URI configID)
           
 void stopGBean(javax.management.ObjectName name)
          Stop a specific GBean.
 void unloadGBean(javax.management.ObjectName name)
          Unload a specific GBean.
 void unregisterShutdownHook(Runnable hook)
           
 

Method Detail

getMBeanServer

public javax.management.MBeanServer getMBeanServer()
Get the MBeanServer used by this kernel

Returns:
the MBeanServer used by this kernel

getKernelName

public String getKernelName()
Get the name of this kernel

Returns:
the name of this kernel

loadGBean

public void loadGBean(javax.management.ObjectName name,
                      org.apache.geronimo.gbean.jmx.GBeanMBean gbean)
               throws javax.management.InstanceAlreadyExistsException,
                      InvalidConfigException
Load a specific GBean into this kernel. This is intended for applications that are embedding the kernel.

Parameters:
name - the name to register the GBean under
gbean - the GBean to register
Throws:
javax.management.InstanceAlreadyExistsException - if the name is already used
InvalidConfigException - if there is a problem during registration

startGBean

public void startGBean(javax.management.ObjectName name)
                throws javax.management.InstanceNotFoundException,
                       InvalidConfigException
Start a specific GBean.

Parameters:
name - the GBean to start
Throws:
javax.management.InstanceNotFoundException - if the GBean could not be found
InvalidConfigException

startRecursiveGBean

public void startRecursiveGBean(javax.management.ObjectName name)
                         throws javax.management.InstanceNotFoundException,
                                InvalidConfigException
Start a specific GBean and its children.

Parameters:
name - the GBean to start
Throws:
javax.management.InstanceNotFoundException - if the GBean could not be found
InvalidConfigException

stopGBean

public void stopGBean(javax.management.ObjectName name)
               throws javax.management.InstanceNotFoundException,
                      InvalidConfigException
Stop a specific GBean.

Parameters:
name - the GBean to stop
Throws:
javax.management.InstanceNotFoundException - if the GBean could not be found
InvalidConfigException

unloadGBean

public void unloadGBean(javax.management.ObjectName name)
                 throws javax.management.InstanceNotFoundException
Unload a specific GBean. This is intended for applications that are embedding the kernel.

Parameters:
name - the name of the GBean to unregister
Throws:
javax.management.InstanceNotFoundException - if the GBean could not be found

isRunning

public boolean isRunning()

getConfigurationManager

public ConfigurationManager getConfigurationManager()

listConfigurationStores

public List listConfigurationStores()
Return a list of the stores this kernel knows about.

Returns:
a List of the stores this kernel controls

listConfigurations

public List listConfigurations(javax.management.ObjectName storeName)
                        throws NoSuchStoreException
Return info about the configurations in a store.

Parameters:
storeName - the store
Returns:
a List of information about the store's configurations
Throws:
NoSuchStoreException - if this store does not exist

startConfiguration

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

stopConfiguration

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

getConfigurationState

public int getConfigurationState(URI configId)
                          throws NoSuchConfigException
Throws:
NoSuchConfigException

getAttribute

public Object getAttribute(javax.management.ObjectName objectName,
                           String attributeName)
                    throws Exception
Throws:
Exception

setAttribute

public void setAttribute(javax.management.ObjectName objectName,
                         String attributeName,
                         Object attributeValue)
                  throws Exception
Throws:
Exception

invoke

public Object invoke(javax.management.ObjectName objectName,
                     String methodName)
              throws Exception
Throws:
Exception

invoke

public Object invoke(javax.management.ObjectName objectName,
                     String methodName,
                     Object[] args,
                     String[] types)
              throws Exception
Throws:
Exception

isLoaded

public boolean isLoaded(javax.management.ObjectName name)

listGBeans

public Set listGBeans(javax.management.ObjectName query)
Return the names of GBeans that match the query.

Parameters:
query - the query to be performed
Returns:
a Set of the names of online GBeans that match the query

registerShutdownHook

public void registerShutdownHook(Runnable hook)

unregisterShutdownHook

public void unregisterShutdownHook(Runnable hook)

shutdown

public void shutdown()


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