| java.lang.Object org.apache.geronimo.kernel.basic.BasicKernel
BasicKernel | public class BasicKernel implements Kernel(Code) | | The core of a Geronimo instance.
A Kernel is responsible for managing the Configurations that comprise a
Geronimo system and exposing them using JMX. Each Kernel is associated
with an MBeanServer that is used to register the Configurations themselves
and the MBeans they define.
Dependencies between MBeans are handled by a dedicated DependencyManager
that is responsible for tracking those dependencies and ensuring that the
dependent objects follow the appropriate lifecycle and receive appropriate
notifications.
The Kernel also provides a ConfigurationStore which is used to stage
installed Configurations (providing a local filesystem based classpath) and
used hold the persistent state of each Configuration. This allows
Configurations to restart in the event of system failure.
TODO: Describe the order of method invocation (e.g. if loadGbean may be before boot)
version: $Rev:386276 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16 Nov 2006) $ |
Constructor Summary | |
public | BasicKernel(String kernelName) Construct a Kernel with the specified name. |
Method Summary | |
public void | boot() | public AbstractName | getAbstractNameFor(Object service) | public Object | getAttribute(ObjectName objectName, String attributeName) | public Object | getAttribute(AbstractName abstractName, String attributeName) | public Object | getAttribute(String shortName, String attributeName) | public Object | getAttribute(Class type, String attributeName) | public Object | getAttribute(String shortName, Class type, String attributeName) | public Date | getBootTime() | public ClassLoader | getClassLoaderFor(AbstractName name) | public ClassLoader | getClassLoaderFor(String shortName) | public ClassLoader | getClassLoaderFor(Class type) | public ClassLoader | getClassLoaderFor(String shortName, Class type) | public DependencyManager | getDependencyManager() | public Object | getGBean(String shortName) | public Object | getGBean(Class type) | public Object | getGBean(String shortName, Class type) | public Object | getGBean(ObjectName name) | public Object | getGBean(AbstractName name) | public GBeanData | getGBeanData(AbstractName name) | public GBeanData | getGBeanData(String shortName) | public GBeanData | getGBeanData(Class type) | public GBeanData | getGBeanData(String shortName, Class type) | public GBeanInfo | getGBeanInfo(ObjectName name) | public GBeanInfo | getGBeanInfo(AbstractName name) | public GBeanInfo | getGBeanInfo(String shortName) | public GBeanInfo | getGBeanInfo(Class type) | public GBeanInfo | getGBeanInfo(String shortName, Class type) | public long | getGBeanStartTime(AbstractName name) | public long | getGBeanStartTime(String shortName) | public long | getGBeanStartTime(Class type) | public long | getGBeanStartTime(String shortName, Class type) | public int | getGBeanState(ObjectName name) | public int | getGBeanState(AbstractName name) | public int | getGBeanState(String shortName) | public int | getGBeanState(Class type) | public int | getGBeanState(String shortName, Class type) | public String | getKernelName() | public LifecycleMonitor | getLifecycleMonitor() Gets the lifecycle monitor. | public Naming | getNaming() | public ProxyManager | getProxyManager() Gets the proxy manager. | public String | getShortNameFor(Object service) | public String | getStateReason(AbstractName abstractName) | public Object | invoke(ObjectName objectName, String methodName) | public Object | invoke(AbstractName abstractName, String methodName) | public Object | invoke(String shortName, String methodName) | public Object | invoke(Class type, String methodName) | public Object | invoke(String shortName, Class type, String methodName) | public Object | invoke(ObjectName objectName, String methodName, Object[] args, String[] types) | public Object | invoke(AbstractName abstractName, String methodName, Object[] args, String[] types) | public Object | invoke(String shortName, String methodName, Object[] args, String[] types) | public Object | invoke(Class type, String methodName, Object[] args, String[] types) | public Object | invoke(String shortName, Class type, String methodName, Object[] args, String[] types) | public boolean | isLoaded(AbstractName name) | public boolean | isLoaded(String shortName) | public boolean | isLoaded(Class type) | public boolean | isLoaded(String shortName, Class type) | public boolean | isRunning(AbstractName name) | public boolean | isRunning(String shortName) | public boolean | isRunning(Class type) | public boolean | isRunning(String shortName, Class type) | public boolean | isRunning() | public Set | listGBeans(ObjectName pattern) | public Set | listGBeans(Set patterns) | public Set | listGBeans(AbstractNameQuery query) | public Set | listGBeansByInterface(String[] interfaces) | public void | loadGBean(GBeanData gbeanData, ClassLoader classLoader) | public void | registerShutdownHook(Runnable hook) | public void | setAttribute(AbstractName abstractName, String attributeName, Object attributeValue) | public void | setAttribute(String shortName, String attributeName, Object attributeValue) | public void | setAttribute(Class type, String attributeName, Object attributeValue) | public void | setAttribute(String shortName, Class type, String attributeName, Object attributeValue) | public void | shutdown() Shut down this kernel instance, unregistering the MBeans and releasing
the MBeanServer. | public void | startGBean(AbstractName name) | public void | startGBean(String shortName) | public void | startGBean(Class type) | public void | startGBean(String shortName, Class type) | public void | startRecursiveGBean(AbstractName name) | public void | startRecursiveGBean(String shortName) | public void | startRecursiveGBean(Class type) | public void | startRecursiveGBean(String shortName, Class type) | public void | stopGBean(AbstractName name) | public void | stopGBean(String shortName) | public void | stopGBean(Class type) | public void | stopGBean(String shortName, Class type) | public void | unloadGBean(AbstractName name) | public void | unloadGBean(String shortName) | public void | unloadGBean(Class type) | public void | unloadGBean(String shortName, Class type) | public void | unregisterShutdownHook(Runnable hook) |
BasicKernel | public BasicKernel(String kernelName)(Code) | | Construct a Kernel with the specified name.
Parameters: kernelName - the name of the kernel |
boot | public void boot() throws Exception(Code) | | Boot this Kernel, triggering the instantiation of the MBeanServer and DependencyManager,
and the registration of ConfigurationStore
throws: java.lang.Exception - if the boot fails |
isRunning | public boolean isRunning()(Code) | | |
listGBeansByInterface | public Set listGBeansByInterface(String[] interfaces)(Code) | | |
registerShutdownHook | public void registerShutdownHook(Runnable hook)(Code) | | |
shutdown | public void shutdown()(Code) | | Shut down this kernel instance, unregistering the MBeans and releasing
the MBeanServer.
|
unregisterShutdownHook | public void unregisterShutdownHook(Runnable hook)(Code) | | |
|
|