| org.apache.geronimo.kernel.Kernel
All known Subclasses: org.apache.geronimo.kernel.KernelGBean, org.apache.geronimo.kernel.basic.BasicKernel,
Kernel | public interface Kernel (Code) | | version: $Rev:386515 $ $Date: 2007-02-10 18:00:20 -0800 (Sat, 10 Feb 2007) $ |
Method Summary | |
void | boot() | 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) | Object | getAttribute(String shortName, String attributeName) | Object | getAttribute(Class type, String attributeName) | Object | getAttribute(String shortName, Class type, String attributeName) | Object | getAttribute(ObjectName name, String attributeName) | Date | getBootTime() Returns the time this kernel was last booted. | ClassLoader | getClassLoaderFor(AbstractName name) | ClassLoader | getClassLoaderFor(String shortName) | ClassLoader | getClassLoaderFor(Class type) | ClassLoader | getClassLoaderFor(String shortName, Class type) | DependencyManager | getDependencyManager() | Object | getGBean(AbstractName name) Gets the specified GBean instance. | Object | getGBean(String shortName) | Object | getGBean(Class type) | Object | getGBean(String shortName, Class type) | Object | getGBean(ObjectName name) | GBeanData | getGBeanData(AbstractName name) Return the GBeanData for a GBean instance. | GBeanData | getGBeanData(String shortName) | GBeanData | getGBeanData(Class type) | GBeanData | getGBeanData(String shortName, Class type) | GBeanInfo | getGBeanInfo(AbstractName name) Return the GBeanInfo for a registered GBean instance. | GBeanInfo | getGBeanInfo(String shortName) | GBeanInfo | getGBeanInfo(Class type) | GBeanInfo | getGBeanInfo(String shortName, Class type) | GBeanInfo | getGBeanInfo(ObjectName name) | long | getGBeanStartTime(AbstractName name) | long | getGBeanStartTime(String shortName) | long | getGBeanStartTime(Class type) | long | getGBeanStartTime(String shortName, Class type) | int | getGBeanState(AbstractName name) Gets the state of the specified GBean. | int | getGBeanState(String shortName) | int | getGBeanState(Class type) | int | getGBeanState(String shortName, Class type) | int | getGBeanState(ObjectName name) | String | getKernelName() | LifecycleMonitor | getLifecycleMonitor() | Naming | getNaming() Gets the naming system used by this kernel. | ProxyManager | getProxyManager() | 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) | Object | invoke(String shortName, String methodName) | Object | invoke(Class type, String methodName) | Object | invoke(String shortName, Class type, String methodName) | Object | invoke(AbstractName name, String methodName, Object[] args, String[] types) | Object | invoke(String shortName, String methodName, Object[] args, String[] types) | Object | invoke(Class type, String methodName, Object[] args, String[] types) | Object | invoke(String shortName, Class type, String methodName, Object[] args, String[] types) | Object | invoke(ObjectName name, String methodName) | Object | invoke(ObjectName name, String methodName, Object[] args, String[] types) | boolean | isLoaded(AbstractName name) | boolean | isLoaded(String shortName) | boolean | isLoaded(Class type) | boolean | isLoaded(String shortName, Class type) | boolean | isRunning(AbstractName name) | boolean | isRunning(String shortName) | boolean | isRunning(Class type) | boolean | isRunning(String shortName, Class type) | boolean | isRunning() | Set | listGBeans(AbstractNameQuery abstractNameQuery) Gets the AbstractNames of all GBeans matching the abstractNameQuery. | Set | listGBeans(Set abstractNameQueries) | Set | listGBeans(ObjectName pattern) | void | loadGBean(GBeanData gbeanData, ClassLoader classLoader) Load a specific GBean into this kernel. | void | registerShutdownHook(Runnable hook) | void | setAttribute(AbstractName name, String attributeName, Object attributeValue) | void | setAttribute(String shortName, String attributeName, Object attributeValue) | void | setAttribute(Class type, String attributeName, Object attributeValue) | void | setAttribute(String shortName, Class type, String attributeName, Object attributeValue) | void | shutdown() | void | startGBean(AbstractName name) Start a specific GBean. | void | startGBean(String shortName) | void | startGBean(Class type) | void | startGBean(String shortName, Class type) | void | startRecursiveGBean(AbstractName name) Start a specific GBean and its children. | void | startRecursiveGBean(String shortName) | void | startRecursiveGBean(Class type) | void | startRecursiveGBean(String shortName, Class type) | void | stopGBean(AbstractName name) Stop a specific GBean. | void | stopGBean(String shortName) | void | stopGBean(Class type) | void | stopGBean(String shortName, Class type) | void | unloadGBean(AbstractName name) Unload a specific GBean. | void | unloadGBean(String shortName) | void | unloadGBean(Class type) | void | unloadGBean(String shortName, Class type) | void | unregisterShutdownHook(Runnable hook) |
KERNEL | ObjectName KERNEL(Code) | | The JMX name used by a Kernel to register itself when it boots.
|
getAbstractNameFor | AbstractName getAbstractNameFor(Object service)(Code) | | 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.
|
getBootTime | Date getBootTime()(Code) | | Returns the time this kernel was last booted.
the time this kernel was last booted; null if the kernel has not been |
getClassLoaderFor | ClassLoader getClassLoaderFor(AbstractName name) throws GBeanNotFoundException(Code) | | Gets the ClassLoader used to register the specified GBean
Parameters: name - the name of the gbean from which the class loader should be extracted the class loader associated with the specified GBean throws: GBeanNotFoundException - if the specified GBean is not registered with the kernel |
getDependencyManager | DependencyManager getDependencyManager()(Code) | | Gets the dependency manager kernel service
the dependency manager or null if the kernel is not running |
getKernelName | String getKernelName()(Code) | | Get the name of this kernel
the name of this kernel |
getLifecycleMonitor | LifecycleMonitor getLifecycleMonitor()(Code) | | Gets the lifecycle monitor kernel service
the lifecycle monitor or null if the kernel is not running |
getNaming | Naming getNaming()(Code) | | Gets the naming system used by this kernel.
the naming system used by this kernel |
getProxyManager | ProxyManager getProxyManager()(Code) | | Gets the proxy manager kernel service
the proxy manager or null if the kernel is not running |
getShortNameFor | String getShortNameFor(Object service)(Code) | | 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.
|
isLoaded | boolean isLoaded(AbstractName name)(Code) | | Is there a GBean registered with the kernel under the specified name?
Parameters: name - the name to check true if there is a gbean registered under the specified name; false otherwise |
isRunning | boolean isRunning(AbstractName name)(Code) | | Is there a GBean registered with the kernel under the specified name and is it running?
Parameters: name - the name to check true if there is a gbean registered under the specified name and is it running; false otherwise |
isRunning | boolean isRunning()(Code) | | Has the kernel been booted
true if the kernel has been booted; false otherwise |
listGBeans | Set listGBeans(AbstractNameQuery abstractNameQuery)(Code) | | Gets the AbstractNames of all GBeans matching the abstractNameQuery.
Parameters: abstractNameQuery - the query to execute the AbstractNames of all matching GBeans |
listGBeans | Set listGBeans(Set abstractNameQueries)(Code) | | Returns a Set of all GBeans matching the set of object name pattern
Parameters: abstractNameQueries - the queries to execute a List of AbstractNameName of matching GBeans registered with this kernel |
listGBeans | Set listGBeans(ObjectName pattern)(Code) | | Returns a Set with elements of type ObjectName
|
registerShutdownHook | void registerShutdownHook(Runnable hook)(Code) | | Registers a runnable to execute when the kernel is shutdown
Parameters: hook - a runnable to execute when the kernel is shutdown |
shutdown | void shutdown()(Code) | | Stops the kernel
|
unregisterShutdownHook | void unregisterShutdownHook(Runnable hook)(Code) | | Unregisters a runnable from the list to execute when the kernel is shutdown
Parameters: hook - the runnable that should be removed |
|
|