|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static javax.management.ObjectName |
KERNEL
The JMX name used by a Kernel to register itself when it boots. |
static org.apache.geronimo.gbean.AbstractName |
KERNEL_NAME
|
Method Summary | |
void |
boot()
Brings the kernel online |
org.apache.geronimo.gbean.AbstractName |
getAbstractNameFor(Object service)
Assuming the argument represents a service running in the kernel, returns an AbstractName for it. |
Object |
getAttribute(org.apache.geronimo.gbean.AbstractName name,
String attributeName)
Gets the value of an attribute on the specified gbean |
Object |
getAttribute(Class type,
String attributeName)
|
Object |
getAttribute(javax.management.ObjectName name,
String attributeName)
Deprecated. Use AbstractName version instead |
Object |
getAttribute(String shortName,
Class type,
String attributeName)
|
Object |
getAttribute(String shortName,
String attributeName)
|
Date |
getBootTime()
Returns the time this kernel was last booted. |
ClassLoader |
getClassLoaderFor(org.apache.geronimo.gbean.AbstractName name)
Gets the ClassLoader used to register the specified GBean |
ClassLoader |
getClassLoaderFor(Class type)
|
ClassLoader |
getClassLoaderFor(String shortName)
|
ClassLoader |
getClassLoaderFor(String shortName,
Class type)
|
DependencyManager |
getDependencyManager()
Gets the dependency manager kernel service |
Object |
getGBean(org.apache.geronimo.gbean.AbstractName name)
Gets the specified GBean instance. |
Object |
getGBean(Class type)
|
Object |
getGBean(javax.management.ObjectName name)
Deprecated. Use AbstractName version instead |
Object |
getGBean(String shortName)
|
Object |
getGBean(String shortName,
Class type)
|
org.apache.geronimo.gbean.GBeanData |
getGBeanData(org.apache.geronimo.gbean.AbstractName name)
Return the GBeanData for a GBean instance. |
org.apache.geronimo.gbean.GBeanData |
getGBeanData(Class type)
|
org.apache.geronimo.gbean.GBeanData |
getGBeanData(String shortName)
|
org.apache.geronimo.gbean.GBeanData |
getGBeanData(String shortName,
Class type)
|
org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo(org.apache.geronimo.gbean.AbstractName name)
Return the GBeanInfo for a registered GBean instance. |
org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo(Class type)
|
org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo(javax.management.ObjectName name)
Deprecated. Use AbstractName version instead |
org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo(String shortName)
|
org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo(String shortName,
Class type)
|
long |
getGBeanStartTime(org.apache.geronimo.gbean.AbstractName name)
Gets the time the specified GBean was started |
long |
getGBeanStartTime(Class type)
|
long |
getGBeanStartTime(String shortName)
|
long |
getGBeanStartTime(String shortName,
Class type)
|
int |
getGBeanState(org.apache.geronimo.gbean.AbstractName name)
Gets the state of the specified GBean. |
int |
getGBeanState(Class type)
|
int |
getGBeanState(javax.management.ObjectName name)
Deprecated. Use AbstractName version instead |
int |
getGBeanState(String shortName)
|
int |
getGBeanState(String shortName,
Class type)
|
String |
getKernelName()
Get the name of this kernel |
LifecycleMonitor |
getLifecycleMonitor()
Gets the lifecycle monitor kernel service |
Naming |
getNaming()
Gets the naming system used by this kernel. |
ProxyManager |
getProxyManager()
Gets the proxy manager kernel service |
String |
getShortNameFor(Object service)
Assuming the argument represents a service running in the kernel, returns the short name of the service. |
Object |
invoke(org.apache.geronimo.gbean.AbstractName name,
String methodName)
Invokes a no-argument method on the specified GBean |
Object |
invoke(org.apache.geronimo.gbean.AbstractName name,
String methodName,
Object[] args,
String[] types)
Invokes a method on the specified GBean with the specified arguments |
Object |
invoke(Class type,
String methodName)
|
Object |
invoke(Class type,
String methodName,
Object[] args,
String[] types)
|
Object |
invoke(javax.management.ObjectName name,
String methodName)
Deprecated. Use AbstractName version instead |
Object |
invoke(javax.management.ObjectName name,
String methodName,
Object[] args,
String[] types)
Deprecated. Use AbstractName version instead |
Object |
invoke(String shortName,
Class type,
String methodName)
|
Object |
invoke(String shortName,
Class type,
String methodName,
Object[] args,
String[] types)
|
Object |
invoke(String shortName,
String methodName)
|
Object |
invoke(String shortName,
String methodName,
Object[] args,
String[] types)
|
boolean |
isLoaded(org.apache.geronimo.gbean.AbstractName name)
Is there a GBean registered with the kernel under the specified name? |
boolean |
isLoaded(Class type)
|
boolean |
isLoaded(String shortName)
|
boolean |
isLoaded(String shortName,
Class type)
|
boolean |
isRunning()
Has the kernel been booted |
boolean |
isRunning(org.apache.geronimo.gbean.AbstractName name)
Is there a GBean registered with the kernel under the specified name and is it running? |
boolean |
isRunning(Class type)
|
boolean |
isRunning(String shortName)
|
boolean |
isRunning(String shortName,
Class type)
|
Set |
listGBeans(org.apache.geronimo.gbean.AbstractNameQuery abstractNameQuery)
Gets the AbstractNames of all GBeans matching the abstractNameQuery. |
Set |
listGBeans(javax.management.ObjectName pattern)
Deprecated. Use AbstractNameQuery version instead |
Set |
listGBeans(Set abstractNameQueries)
Returns a Set of all GBeans matching the set of object name pattern |
void |
loadGBean(org.apache.geronimo.gbean.GBeanData gbeanData,
ClassLoader classLoader)
Load a specific GBean into this kernel. |
void |
registerShutdownHook(Runnable hook)
Registers a runnable to execute when the kernel is shutdown |
void |
setAttribute(org.apache.geronimo.gbean.AbstractName name,
String attributeName,
Object attributeValue)
Sets the value of an attribute on the specified gbean |
void |
setAttribute(Class type,
String attributeName,
Object attributeValue)
|
void |
setAttribute(String shortName,
Class type,
String attributeName,
Object attributeValue)
|
void |
setAttribute(String shortName,
String attributeName,
Object attributeValue)
|
void |
shutdown()
Stops the kernel |
void |
startGBean(org.apache.geronimo.gbean.AbstractName name)
Start a specific GBean. |
void |
startGBean(Class type)
|
void |
startGBean(String shortName)
|
void |
startGBean(String shortName,
Class type)
|
void |
startRecursiveGBean(org.apache.geronimo.gbean.AbstractName name)
Start a specific GBean and its children. |
void |
startRecursiveGBean(Class type)
|
void |
startRecursiveGBean(String shortName)
|
void |
startRecursiveGBean(String shortName,
Class type)
|
void |
stopGBean(org.apache.geronimo.gbean.AbstractName name)
Stop a specific GBean. |
void |
stopGBean(Class type)
|
void |
stopGBean(String shortName)
|
void |
stopGBean(String shortName,
Class type)
|
void |
unloadGBean(org.apache.geronimo.gbean.AbstractName name)
Unload a specific GBean. |
void |
unloadGBean(Class type)
|
void |
unloadGBean(String shortName)
|
void |
unloadGBean(String shortName,
Class type)
|
void |
unregisterShutdownHook(Runnable hook)
Unregisters a runnable from the list to execute when the kernel is shutdown |
Field Detail |
public static final javax.management.ObjectName KERNEL
public static final org.apache.geronimo.gbean.AbstractName KERNEL_NAME
Method Detail |
public String getKernelName()
public Naming getNaming()
public DependencyManager getDependencyManager()
public LifecycleMonitor getLifecycleMonitor()
public ProxyManager getProxyManager()
public void loadGBean(org.apache.geronimo.gbean.GBeanData gbeanData, ClassLoader classLoader) throws GBeanAlreadyExistsException, InternalKernelException
gbeanData
- the GBean to loadclassLoader
- the class loader to use to load the gbean
GBeanAlreadyExistsException
- if the name is already used
InternalKernelException
- if there is a problem during registrationpublic boolean isLoaded(org.apache.geronimo.gbean.AbstractName name)
name
- the name to check
public boolean isLoaded(String shortName)
public boolean isLoaded(Class type)
public boolean isLoaded(String shortName, Class type)
public Object getGBean(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
name
- the GBean instance to get
GBeanNotFoundException
- if the GBean could not be found
InternalKernelException
- if there is a general error
IllegalStateException
- If the gbean is disabledpublic Object getGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public Object getGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public Object getGBean(String shortName, Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void startGBean(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
name
- the GBean to start
GBeanNotFoundException
- if the GBean could not be found
InternalKernelException
- if there GBean is not state manageable or if there is a general error
IllegalStateException
- If the gbean is disabledpublic void startGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void startGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void startGBean(String shortName, Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void startRecursiveGBean(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
name
- the GBean to start
GBeanNotFoundException
- if the GBean could not be found
InternalKernelException
- if there GBean is not state manageable or if there is a general error
IllegalStateException
- If the gbean is disabledpublic void startRecursiveGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void startRecursiveGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void startRecursiveGBean(String shortName, Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public boolean isRunning(org.apache.geronimo.gbean.AbstractName name)
name
- the name to check
public boolean isRunning(String shortName)
public boolean isRunning(Class type)
public boolean isRunning(String shortName, Class type)
public void stopGBean(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
name
- the GBean to stop
GBeanNotFoundException
- if the GBean could not be found
InternalKernelException
- if there GBean is not state manageable or if there is a general error
IllegalStateException
- If the gbean is disabledpublic void stopGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void stopGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void stopGBean(String shortName, Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void unloadGBean(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
name
- the name of the GBean to unregister
GBeanNotFoundException
- if the GBean could not be found
InternalKernelException
- if there GBean is a problem while unloading the GBean
IllegalStateException
public void unloadGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void unloadGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public void unloadGBean(String shortName, Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public int getGBeanState(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException
name
- the name of the GBean
GBeanNotFoundException
- if the GBean could not be foundpublic int getGBeanState(String shortName) throws GBeanNotFoundException
GBeanNotFoundException
public int getGBeanState(Class type) throws GBeanNotFoundException
GBeanNotFoundException
public int getGBeanState(String shortName, Class type) throws GBeanNotFoundException
GBeanNotFoundException
public long getGBeanStartTime(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException
name
- the name of the GBean
GBeanNotFoundException
- if the GBean could not be foundpublic long getGBeanStartTime(String shortName) throws GBeanNotFoundException
GBeanNotFoundException
public long getGBeanStartTime(Class type) throws GBeanNotFoundException
GBeanNotFoundException
public long getGBeanStartTime(String shortName, Class type) throws GBeanNotFoundException
GBeanNotFoundException
public ClassLoader getClassLoaderFor(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException
name
- the name of the gbean from which the class loader should be extracted
GBeanNotFoundException
- if the specified GBean is not registered with the kernelpublic ClassLoader getClassLoaderFor(String shortName) throws GBeanNotFoundException
GBeanNotFoundException
public ClassLoader getClassLoaderFor(Class type) throws GBeanNotFoundException
GBeanNotFoundException
public ClassLoader getClassLoaderFor(String shortName, Class type) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.GBeanInfo getGBeanInfo(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException
name
- the name of the GBean whose info should be returned
GBeanNotFoundException
- if there is no instance with the supplied namepublic org.apache.geronimo.gbean.GBeanInfo getGBeanInfo(String shortName) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.GBeanInfo getGBeanInfo(Class type) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.GBeanInfo getGBeanInfo(String shortName, Class type) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.GBeanData getGBeanData(org.apache.geronimo.gbean.AbstractName name) throws GBeanNotFoundException, InternalKernelException
name
- the name of the GBean whose info should be returned
GBeanNotFoundException
- if there is no instance with the supplied name
InternalKernelException
public org.apache.geronimo.gbean.GBeanData getGBeanData(String shortName) throws GBeanNotFoundException, InternalKernelException
GBeanNotFoundException
InternalKernelException
public org.apache.geronimo.gbean.GBeanData getGBeanData(Class type) throws GBeanNotFoundException, InternalKernelException
GBeanNotFoundException
InternalKernelException
public org.apache.geronimo.gbean.GBeanData getGBeanData(String shortName, Class type) throws GBeanNotFoundException, InternalKernelException
GBeanNotFoundException
InternalKernelException
public Set listGBeans(org.apache.geronimo.gbean.AbstractNameQuery abstractNameQuery)
abstractNameQuery
- the query to execute
public Set listGBeans(Set abstractNameQueries)
abstractNameQueries
- the queries to execute
public Object getAttribute(org.apache.geronimo.gbean.AbstractName name, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
name
- the name of the gbean from which the attribute will be retrievedattributeName
- the name of the attribute to fetch
GBeanNotFoundException
- if there is not a gbean under the specified name
NoSuchAttributeException
- if the gbean does not contain the specified attribute
Exception
- if the gbean throws an exception from the getterpublic Object getAttribute(String shortName, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
GBeanNotFoundException
NoSuchAttributeException
Exception
public Object getAttribute(Class type, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
GBeanNotFoundException
NoSuchAttributeException
Exception
public Object getAttribute(String shortName, Class type, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
GBeanNotFoundException
NoSuchAttributeException
Exception
public void setAttribute(org.apache.geronimo.gbean.AbstractName name, String attributeName, Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception
name
- the name of the gbean from in which the new attribute value will be setattributeName
- the name of the attribute to setattributeValue
- the new value of the attribute
GBeanNotFoundException
- if there is not a gbean under the specified name
NoSuchAttributeException
- if the gbean does not contain the specified attribute
Exception
- if the gbean throws an exception from the setterpublic void setAttribute(String shortName, String attributeName, Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception
GBeanNotFoundException
NoSuchAttributeException
Exception
public void setAttribute(Class type, String attributeName, Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception
GBeanNotFoundException
NoSuchAttributeException
Exception
public void setAttribute(String shortName, Class type, String attributeName, Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception
GBeanNotFoundException
NoSuchAttributeException
Exception
public Object invoke(org.apache.geronimo.gbean.AbstractName name, String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
name
- the name of the gbean from in which the new attribute value will be setmethodName
- the name of the method to invoke
GBeanNotFoundException
- if there is not a gbean under the specified name
NoSuchOperationException
- if the gbean does not have the specified operation
InternalKernelException
- if an error occurs within the kernel itself
Exception
- if the method throws an exceptionpublic Object invoke(String shortName, String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception
public Object invoke(Class type, String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception
public Object invoke(String shortName, Class type, String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception
public Object invoke(org.apache.geronimo.gbean.AbstractName name, String methodName, Object[] args, String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
name
- the name of the gbean from in which the new attribute value will be setmethodName
- the name of the method to invokeargs
- the arguments to pass to the methodtypes
- the types of the arguments; the types are used to determine the signature of the mehod that should be invoked
GBeanNotFoundException
- if there is not a gbean under the specified name
NoSuchOperationException
- if the gbean does not have the specified operation
InternalKernelException
- if an error occurs within the kernel itself
Exception
- if the method throws an exceptionpublic Object invoke(String shortName, String methodName, Object[] args, String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception
public Object invoke(Class type, String methodName, Object[] args, String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception
public Object invoke(String shortName, Class type, String methodName, Object[] args, String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception
public org.apache.geronimo.gbean.AbstractName getAbstractNameFor(Object service)
public String getShortNameFor(Object service)
public void boot() throws Exception
Exception
- if the kernel can not bootpublic Date getBootTime()
public void registerShutdownHook(Runnable hook)
hook
- a runnable to execute when the kernel is shutdownpublic void unregisterShutdownHook(Runnable hook)
hook
- the runnable that should be removedpublic void shutdown()
public boolean isRunning()
public Object getGBean(javax.management.ObjectName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
GBeanNotFoundException
InternalKernelException
IllegalStateException
public int getGBeanState(javax.management.ObjectName name) throws GBeanNotFoundException
GBeanNotFoundException
public org.apache.geronimo.gbean.GBeanInfo getGBeanInfo(javax.management.ObjectName name) throws GBeanNotFoundException
GBeanNotFoundException
public Set listGBeans(javax.management.ObjectName pattern)
public Object getAttribute(javax.management.ObjectName name, String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
GBeanNotFoundException
NoSuchAttributeException
Exception
public Object invoke(javax.management.ObjectName name, String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception
public Object invoke(javax.management.ObjectName name, String methodName, Object[] args, String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |