|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public javax.management.MBeanServer getMBeanServer()
public String getKernelName()
public void loadGBean(javax.management.ObjectName name, org.apache.geronimo.gbean.jmx.GBeanMBean gbean) throws javax.management.InstanceAlreadyExistsException, InvalidConfigException
name
- the name to register the GBean undergbean
- the GBean to register
javax.management.InstanceAlreadyExistsException
- if the name is already used
InvalidConfigException
- if there is a problem during registrationpublic void startGBean(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException, InvalidConfigException
name
- the GBean to start
javax.management.InstanceNotFoundException
- if the GBean could not be found
InvalidConfigException
public void startRecursiveGBean(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException, InvalidConfigException
name
- the GBean to start
javax.management.InstanceNotFoundException
- if the GBean could not be found
InvalidConfigException
public void stopGBean(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException, InvalidConfigException
name
- the GBean to stop
javax.management.InstanceNotFoundException
- if the GBean could not be found
InvalidConfigException
public void unloadGBean(javax.management.ObjectName name) throws javax.management.InstanceNotFoundException
name
- the name of the GBean to unregister
javax.management.InstanceNotFoundException
- if the GBean could not be foundpublic boolean isRunning()
public ConfigurationManager getConfigurationManager()
public List listConfigurationStores()
public List listConfigurations(javax.management.ObjectName storeName) throws NoSuchStoreException
storeName
- the store
NoSuchStoreException
- if this store does not existpublic javax.management.ObjectName startConfiguration(URI configID) throws NoSuchConfigException, IOException, InvalidConfigException
NoSuchConfigException
IOException
InvalidConfigException
public void stopConfiguration(URI configID) throws NoSuchConfigException
NoSuchConfigException
public int getConfigurationState(URI configId) throws NoSuchConfigException
NoSuchConfigException
public Object getAttribute(javax.management.ObjectName objectName, String attributeName) throws Exception
Exception
public void setAttribute(javax.management.ObjectName objectName, String attributeName, Object attributeValue) throws Exception
Exception
public Object invoke(javax.management.ObjectName objectName, String methodName) throws Exception
Exception
public Object invoke(javax.management.ObjectName objectName, String methodName, Object[] args, String[] types) throws Exception
Exception
public boolean isLoaded(javax.management.ObjectName name)
public Set listGBeans(javax.management.ObjectName query)
query
- the query to be performed
public void registerShutdownHook(Runnable hook)
public void unregisterShutdownHook(Runnable hook)
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |