org.apache.geronimo.kernel
Interface Kernel

All Known Implementing Classes:
BasicKernel, KernelDelegate, KernelGBean

public interface Kernel


Field Summary
static ObjectName KERNEL
          The JMX name used by a Kernel to register itself when it boots.
static AbstractName KERNEL_NAME
           
 
Method Summary
 void boot()
          Brings the kernel online
 AbstractName getAbstractNameFor(Object service)
          Assuming the argument represents a service running in the kernel, returns an AbstractName for it.
 Object getAttribute(AbstractName name, String attributeName)
          Gets the value of an attribute on the specified gbean
 Object getAttribute(Class type, String attributeName)
           
 Object getAttribute(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(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(AbstractName name)
          Gets the specified GBean instance.
 Object getGBean(Class type)
           
 Object getGBean(ObjectName name)
          Deprecated. Use AbstractName version instead
 Object getGBean(String shortName)
           
 Object getGBean(String shortName, Class type)
           
 GBeanData getGBeanData(AbstractName name)
          Return the GBeanData for a GBean instance.
 GBeanData getGBeanData(Class type)
           
 GBeanData getGBeanData(String shortName)
           
 GBeanData getGBeanData(String shortName, Class type)
           
 GBeanInfo getGBeanInfo(AbstractName name)
          Return the GBeanInfo for a registered GBean instance.
 GBeanInfo getGBeanInfo(Class type)
           
 GBeanInfo getGBeanInfo(ObjectName name)
          Deprecated. Use AbstractName version instead
 GBeanInfo getGBeanInfo(String shortName)
           
 GBeanInfo getGBeanInfo(String shortName, Class type)
           
 long getGBeanStartTime(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(AbstractName name)
          Gets the state of the specified GBean.
 int getGBeanState(Class type)
           
 int getGBeanState(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.
 String getStateReason(AbstractName abstractName)
           
 Object invoke(AbstractName name, String methodName)
          Invokes a no-argument method on the specified GBean
 Object invoke(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(ObjectName name, String methodName)
          Deprecated. Use AbstractName version instead
 Object invoke(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(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(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(AbstractNameQuery abstractNameQuery)
          Gets the AbstractNames of all GBeans matching the abstractNameQuery.
 Set listGBeans(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(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(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(AbstractName name)
          Start a specific GBean.
 void startGBean(Class type)
           
 void startGBean(String shortName)
           
 void startGBean(String shortName, Class type)
           
 void startRecursiveGBean(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(AbstractName name)
          Stop a specific GBean.
 void stopGBean(Class type)
           
 void stopGBean(String shortName)
           
 void stopGBean(String shortName, Class type)
           
 void unloadGBean(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

KERNEL

static final ObjectName KERNEL
The JMX name used by a Kernel to register itself when it boots.


KERNEL_NAME

static final AbstractName KERNEL_NAME
Method Detail

getKernelName

String getKernelName()
Get the name of this kernel

Returns:
the name of this kernel

getNaming

Naming getNaming()
Gets the naming system used by this kernel.

Returns:
the naming system used by this kernel

getDependencyManager

DependencyManager getDependencyManager()
Gets the dependency manager kernel service

Returns:
the dependency manager or null if the kernel is not running

getLifecycleMonitor

LifecycleMonitor getLifecycleMonitor()
Gets the lifecycle monitor kernel service

Returns:
the lifecycle monitor or null if the kernel is not running

getProxyManager

ProxyManager getProxyManager()
Gets the proxy manager kernel service

Returns:
the proxy manager or null if the kernel is not running

loadGBean

void loadGBean(GBeanData gbeanData,
               ClassLoader classLoader)
               throws GBeanAlreadyExistsException,
                      InternalKernelException
Load a specific GBean into this kernel. This is intended for applications that are embedding the kernel.

Parameters:
gbeanData - the GBean to load
classLoader - the class loader to use to load the gbean
Throws:
GBeanAlreadyExistsException - if the name is already used
InternalKernelException - if there is a problem during registration

isLoaded

boolean isLoaded(AbstractName name)
Is there a GBean registered with the kernel under the specified name?

Parameters:
name - the name to check
Returns:
true if there is a gbean registered under the specified name; false otherwise

isLoaded

boolean isLoaded(String shortName)

isLoaded

boolean isLoaded(Class type)

isLoaded

boolean isLoaded(String shortName,
                 Class type)

getGBean

Object getGBean(AbstractName name)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Gets the specified GBean instance.

Parameters:
name - the GBean instance to get
Throws:
GBeanNotFoundException - if the GBean could not be found
InternalKernelException - if there is a general error
IllegalStateException - If the gbean is disabled

getGBean

Object getGBean(String shortName)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

getGBean

Object getGBean(Class type)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

getGBean

Object getGBean(String shortName,
                Class type)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

startGBean

void startGBean(AbstractName name)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Start a specific GBean.

Parameters:
name - the GBean to start
Throws:
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 disabled

startGBean

void startGBean(String shortName)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

startGBean

void startGBean(Class type)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

startGBean

void startGBean(String shortName,
                Class type)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

startRecursiveGBean

void startRecursiveGBean(AbstractName name)
                         throws GBeanNotFoundException,
                                InternalKernelException,
                                IllegalStateException
Start a specific GBean and its children.

Parameters:
name - the GBean to start
Throws:
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 disabled

startRecursiveGBean

void startRecursiveGBean(String shortName)
                         throws GBeanNotFoundException,
                                InternalKernelException,
                                IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

startRecursiveGBean

void startRecursiveGBean(Class type)
                         throws GBeanNotFoundException,
                                InternalKernelException,
                                IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

startRecursiveGBean

void startRecursiveGBean(String shortName,
                         Class type)
                         throws GBeanNotFoundException,
                                InternalKernelException,
                                IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

isRunning

boolean isRunning(AbstractName name)
Is there a GBean registered with the kernel under the specified name and is it running?

Parameters:
name - the name to check
Returns:
true if there is a gbean registered under the specified name and is it running; false otherwise

isRunning

boolean isRunning(String shortName)

isRunning

boolean isRunning(Class type)

isRunning

boolean isRunning(String shortName,
                  Class type)

stopGBean

void stopGBean(AbstractName name)
               throws GBeanNotFoundException,
                      InternalKernelException,
                      IllegalStateException
Stop a specific GBean.

Parameters:
name - the GBean to stop
Throws:
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 disabled

stopGBean

void stopGBean(String shortName)
               throws GBeanNotFoundException,
                      InternalKernelException,
                      IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

stopGBean

void stopGBean(Class type)
               throws GBeanNotFoundException,
                      InternalKernelException,
                      IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

stopGBean

void stopGBean(String shortName,
               Class type)
               throws GBeanNotFoundException,
                      InternalKernelException,
                      IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

unloadGBean

void unloadGBean(AbstractName name)
                 throws GBeanNotFoundException,
                        InternalKernelException,
                        IllegalStateException
Unload a specific GBean. This is intended for applications that are embedding the kernel.

Parameters:
name - the name of the GBean to unregister
Throws:
GBeanNotFoundException - if the GBean could not be found
InternalKernelException - if there GBean is a problem while unloading the GBean
IllegalStateException

unloadGBean

void unloadGBean(String shortName)
                 throws GBeanNotFoundException,
                        InternalKernelException,
                        IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

unloadGBean

void unloadGBean(Class type)
                 throws GBeanNotFoundException,
                        InternalKernelException,
                        IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

unloadGBean

void unloadGBean(String shortName,
                 Class type)
                 throws GBeanNotFoundException,
                        InternalKernelException,
                        IllegalStateException
Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

getGBeanState

int getGBeanState(AbstractName name)
                  throws GBeanNotFoundException
Gets the state of the specified GBean.

Parameters:
name - the name of the GBean
Returns:
the state of the GBean
Throws:
GBeanNotFoundException - if the GBean could not be found

getGBeanState

int getGBeanState(String shortName)
                  throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanState

int getGBeanState(Class type)
                  throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanState

int getGBeanState(String shortName,
                  Class type)
                  throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanStartTime

long getGBeanStartTime(AbstractName name)
                       throws GBeanNotFoundException
Gets the time the specified GBean was started

Parameters:
name - the name of the GBean
Returns:
the start time of the GBean or 0 if not running
Throws:
GBeanNotFoundException - if the GBean could not be found

getGBeanStartTime

long getGBeanStartTime(String shortName)
                       throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanStartTime

long getGBeanStartTime(Class type)
                       throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanStartTime

long getGBeanStartTime(String shortName,
                       Class type)
                       throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getClassLoaderFor

ClassLoader getClassLoaderFor(AbstractName name)
                              throws GBeanNotFoundException
Gets the ClassLoader used to register the specified GBean

Parameters:
name - the name of the gbean from which the class loader should be extracted
Returns:
the class loader associated with the specified GBean
Throws:
GBeanNotFoundException - if the specified GBean is not registered with the kernel

getClassLoaderFor

ClassLoader getClassLoaderFor(String shortName)
                              throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getClassLoaderFor

ClassLoader getClassLoaderFor(Class type)
                              throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getClassLoaderFor

ClassLoader getClassLoaderFor(String shortName,
                              Class type)
                              throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanInfo

GBeanInfo getGBeanInfo(AbstractName name)
                       throws GBeanNotFoundException
Return the GBeanInfo for a registered GBean instance.

Parameters:
name - the name of the GBean whose info should be returned
Returns:
the info for that instance
Throws:
GBeanNotFoundException - if there is no instance with the supplied name

getGBeanInfo

GBeanInfo getGBeanInfo(String shortName)
                       throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanInfo

GBeanInfo getGBeanInfo(Class type)
                       throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanInfo

GBeanInfo getGBeanInfo(String shortName,
                       Class type)
                       throws GBeanNotFoundException
Throws:
GBeanNotFoundException

getGBeanData

GBeanData getGBeanData(AbstractName name)
                       throws GBeanNotFoundException,
                              InternalKernelException
Return the GBeanData for a GBean instance.

Parameters:
name - the name of the GBean whose info should be returned
Returns:
the info for that instance
Throws:
GBeanNotFoundException - if there is no instance with the supplied name
InternalKernelException

getGBeanData

GBeanData getGBeanData(String shortName)
                       throws GBeanNotFoundException,
                              InternalKernelException
Throws:
GBeanNotFoundException
InternalKernelException

getGBeanData

GBeanData getGBeanData(Class type)
                       throws GBeanNotFoundException,
                              InternalKernelException
Throws:
GBeanNotFoundException
InternalKernelException

getGBeanData

GBeanData getGBeanData(String shortName,
                       Class type)
                       throws GBeanNotFoundException,
                              InternalKernelException
Throws:
GBeanNotFoundException
InternalKernelException

listGBeans

Set listGBeans(AbstractNameQuery abstractNameQuery)
Gets the AbstractNames of all GBeans matching the abstractNameQuery.

Parameters:
abstractNameQuery - the query to execute
Returns:
the AbstractNames of all matching GBeans

listGBeans

Set listGBeans(Set abstractNameQueries)
Returns a Set of all GBeans matching the set of object name pattern

Parameters:
abstractNameQueries - the queries to execute
Returns:
a List of AbstractNameName of matching GBeans registered with this kernel

getAttribute

Object getAttribute(AbstractName name,
                    String attributeName)
                    throws GBeanNotFoundException,
                           NoSuchAttributeException,
                           Exception
Gets the value of an attribute on the specified gbean

Parameters:
name - the name of the gbean from which the attribute will be retrieved
attributeName - the name of the attribute to fetch
Returns:
the value of the attribute
Throws:
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 getter

getAttribute

Object getAttribute(String shortName,
                    String attributeName)
                    throws GBeanNotFoundException,
                           NoSuchAttributeException,
                           Exception
Throws:
GBeanNotFoundException
NoSuchAttributeException
Exception

getAttribute

Object getAttribute(Class type,
                    String attributeName)
                    throws GBeanNotFoundException,
                           NoSuchAttributeException,
                           Exception
Throws:
GBeanNotFoundException
NoSuchAttributeException
Exception

getAttribute

Object getAttribute(String shortName,
                    Class type,
                    String attributeName)
                    throws GBeanNotFoundException,
                           NoSuchAttributeException,
                           Exception
Throws:
GBeanNotFoundException
NoSuchAttributeException
Exception

setAttribute

void setAttribute(AbstractName name,
                  String attributeName,
                  Object attributeValue)
                  throws GBeanNotFoundException,
                         NoSuchAttributeException,
                         Exception
Sets the value of an attribute on the specified gbean

Parameters:
name - the name of the gbean from in which the new attribute value will be set
attributeName - the name of the attribute to set
attributeValue - the new value of the attribute
Throws:
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 setter

setAttribute

void setAttribute(String shortName,
                  String attributeName,
                  Object attributeValue)
                  throws GBeanNotFoundException,
                         NoSuchAttributeException,
                         Exception
Throws:
GBeanNotFoundException
NoSuchAttributeException
Exception

setAttribute

void setAttribute(Class type,
                  String attributeName,
                  Object attributeValue)
                  throws GBeanNotFoundException,
                         NoSuchAttributeException,
                         Exception
Throws:
GBeanNotFoundException
NoSuchAttributeException
Exception

setAttribute

void setAttribute(String shortName,
                  Class type,
                  String attributeName,
                  Object attributeValue)
                  throws GBeanNotFoundException,
                         NoSuchAttributeException,
                         Exception
Throws:
GBeanNotFoundException
NoSuchAttributeException
Exception

invoke

Object invoke(AbstractName name,
              String methodName)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Invokes a no-argument method on the specified GBean

Parameters:
name - the name of the gbean from in which the new attribute value will be set
methodName - the name of the method to invoke
Returns:
the return value of the method or null if the specified method does not return a value
Throws:
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 exception

invoke

Object invoke(String shortName,
              String methodName)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Throws:
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception

invoke

Object invoke(Class type,
              String methodName)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Throws:
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception

invoke

Object invoke(String shortName,
              Class type,
              String methodName)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Throws:
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception

invoke

Object invoke(AbstractName name,
              String methodName,
              Object[] args,
              String[] types)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Invokes a method on the specified GBean with the specified arguments

Parameters:
name - the name of the gbean from in which the new attribute value will be set
methodName - the name of the method to invoke
args - the arguments to pass to the method
types - the types of the arguments; the types are used to determine the signature of the mehod that should be invoked
Returns:
the return value of the method or null if the specified method does not return a value
Throws:
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 exception

invoke

Object invoke(String shortName,
              String methodName,
              Object[] args,
              String[] types)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Throws:
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception

invoke

Object invoke(Class type,
              String methodName,
              Object[] args,
              String[] types)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Throws:
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception

invoke

Object invoke(String shortName,
              Class type,
              String methodName,
              Object[] args,
              String[] types)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Throws:
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception

getAbstractNameFor

AbstractName getAbstractNameFor(Object service)
Assuming the argument represents a service running in the kernel, returns an AbstractName for it. If the argument is not a service or the kernel cannot produce an AbstractName for it, returns null.


getShortNameFor

String getShortNameFor(Object service)
Assuming the argument represents a service running in the kernel, returns the short name of the service. If the argument is not a service, returns null.


boot

void boot()
          throws Exception
Brings the kernel online

Throws:
Exception - if the kernel can not boot

getBootTime

Date getBootTime()
Returns the time this kernel was last booted.

Returns:
the time this kernel was last booted; null if the kernel has not been

registerShutdownHook

void registerShutdownHook(Runnable hook)
Registers a runnable to execute when the kernel is shutdown

Parameters:
hook - a runnable to execute when the kernel is shutdown

unregisterShutdownHook

void unregisterShutdownHook(Runnable hook)
Unregisters a runnable from the list to execute when the kernel is shutdown

Parameters:
hook - the runnable that should be removed

shutdown

void shutdown()
Stops the kernel


isRunning

boolean isRunning()
Has the kernel been booted

Returns:
true if the kernel has been booted; false otherwise

getGBean

Object getGBean(ObjectName name)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       IllegalStateException
Deprecated. Use AbstractName version instead

Throws:
GBeanNotFoundException
InternalKernelException
IllegalStateException

getGBeanState

int getGBeanState(ObjectName name)
                  throws GBeanNotFoundException
Deprecated. Use AbstractName version instead

Throws:
GBeanNotFoundException

getGBeanInfo

GBeanInfo getGBeanInfo(ObjectName name)
                       throws GBeanNotFoundException
Deprecated. Use AbstractName version instead

Throws:
GBeanNotFoundException

listGBeans

Set listGBeans(ObjectName pattern)
Deprecated. Use AbstractNameQuery version instead

Returns a Set with elements of type ObjectName


getAttribute

Object getAttribute(ObjectName name,
                    String attributeName)
                    throws GBeanNotFoundException,
                           NoSuchAttributeException,
                           Exception
Deprecated. Use AbstractName version instead

Throws:
GBeanNotFoundException
NoSuchAttributeException
Exception

invoke

Object invoke(ObjectName name,
              String methodName)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Deprecated. Use AbstractName version instead

Throws:
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception

invoke

Object invoke(ObjectName name,
              String methodName,
              Object[] args,
              String[] types)
              throws GBeanNotFoundException,
                     NoSuchOperationException,
                     InternalKernelException,
                     Exception
Deprecated. Use AbstractName version instead

Throws:
GBeanNotFoundException
NoSuchOperationException
InternalKernelException
Exception

getStateReason

String getStateReason(AbstractName abstractName)


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.