Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.geronimo.kernel
Interface Kernel  view Kernel download Kernel.java

All Known Implementing Classes:
KernelGBean

public interface Kernel

Version:
$Rev: 169154 $ $Date: 2005-05-08 12:35:23 -0700 (Sun, 08 May 2005) $

Field Summary
static javax.management.ObjectName KERNEL
          The JMX name used by a Kernel to register itself when it boots.
 
Method Summary
 void boot()
          Brings the kernel online
 java.lang.Object getAttribute(javax.management.ObjectName objectName, java.lang.String attributeName)
          Gets the value of an attribute on the specified gbean
 java.util.Date getBootTime()
          Returns the time this kernel was last booted.
 java.lang.ClassLoader getClassLoaderFor(javax.management.ObjectName name)
          Gets the ClassLoader used to register the specified GBean
 DependencyManager getDependencyManager()
          Gets the dependency manager kernel service
 org.apache.geronimo.gbean.GBeanData getGBeanData(javax.management.ObjectName name)
          Return the GBeanData for a GBean instance.
 org.apache.geronimo.gbean.GBeanInfo getGBeanInfo(javax.management.ObjectName name)
          Return the GBeanInfo for a registered GBean instance.
 long getGBeanStartTime(javax.management.ObjectName name)
          Gets the time the specified GBean was started
 int getGBeanState(javax.management.ObjectName name)
          Gets the state of the specified GBean.
 java.lang.String getKernelName()
          Get the name of this kernel
 org.apache.geronimo.kernel.lifecycle.LifecycleMonitor getLifecycleMonitor()
          Gets the lifecycle monitor kernel service
 org.apache.geronimo.kernel.proxy.ProxyManager getProxyManager()
          Gets the proxy manager kernel service
 java.lang.Object invoke(javax.management.ObjectName objectName, java.lang.String methodName)
          Invokes a no-argument method on the specified GBean
 java.lang.Object invoke(javax.management.ObjectName objectName, java.lang.String methodName, java.lang.Object[] args, java.lang.String[] types)
          Invokes a method on the specified GBean with the specified arguments
 boolean isGBeanEnabled(javax.management.ObjectName name)
          Is the specified GBean enabled?
 boolean isLoaded(javax.management.ObjectName name)
          Is there a GBean registered with the kernel under the specified name?
 boolean isRunning()
          Has the kernel been booted
 java.util.Set listGBeans(javax.management.ObjectName pattern)
          Returns a Set of all GBeans matching the object name pattern
 java.util.Set listGBeans(java.util.Set patterns)
          Returns a Set of all GBeans matching the set of object name pattern
 void loadGBean(org.apache.geronimo.gbean.GBeanData gbeanData, java.lang.ClassLoader classLoader)
          Load a specific GBean into this kernel.
 void registerShutdownHook(java.lang.Runnable hook)
          Registers a runnable to execute when the kernel is shutdown
 void setAttribute(javax.management.ObjectName objectName, java.lang.String attributeName, java.lang.Object attributeValue)
          Sets the value of an attribute on the specified gbean
 void setGBeanEnabled(javax.management.ObjectName name, boolean enabled)
          Sets the eneabled status of the specified GBean.
 void shutdown()
          Stops the kernel
 void startGBean(javax.management.ObjectName name)
          Start a specific GBean.
 void startRecursiveGBean(javax.management.ObjectName name)
          Start a specific GBean and its children.
 void stopGBean(javax.management.ObjectName name)
          Stop a specific GBean.
 void unloadGBean(javax.management.ObjectName name)
          Unload a specific GBean.
 void unregisterShutdownHook(java.lang.Runnable hook)
          Unregisters a runnable from the list to execute when the kernel is shutdown
 

Field Detail

KERNEL

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

Method Detail

getKernelName

public java.lang.String getKernelName()
Get the name of this kernel


getDependencyManager

public DependencyManager getDependencyManager()
Gets the dependency manager kernel service


getLifecycleMonitor

public org.apache.geronimo.kernel.lifecycle.LifecycleMonitor getLifecycleMonitor()
Gets the lifecycle monitor kernel service


getProxyManager

public org.apache.geronimo.kernel.proxy.ProxyManager getProxyManager()
Gets the proxy manager kernel service


loadGBean

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


isLoaded

public boolean isLoaded(javax.management.ObjectName name)
Is there a GBean registered with the kernel under the specified name?


startGBean

public void startGBean(javax.management.ObjectName name)
                throws GBeanNotFoundException,
                       InternalKernelException,
                       java.lang.IllegalStateException
Start a specific GBean.


startRecursiveGBean

public void startRecursiveGBean(javax.management.ObjectName name)
                         throws GBeanNotFoundException,
                                InternalKernelException,
                                java.lang.IllegalStateException
Start a specific GBean and its children.


stopGBean

public void stopGBean(javax.management.ObjectName name)
               throws GBeanNotFoundException,
                      InternalKernelException,
                      java.lang.IllegalStateException
Stop a specific GBean.


unloadGBean

public void unloadGBean(javax.management.ObjectName name)
                 throws GBeanNotFoundException,
                        InternalKernelException,
                        java.lang.IllegalStateException
Unload a specific GBean. This is intended for applications that are embedding the kernel.


getGBeanState

public int getGBeanState(javax.management.ObjectName name)
                  throws GBeanNotFoundException
Gets the state of the specified GBean.


getGBeanStartTime

public long getGBeanStartTime(javax.management.ObjectName name)
                       throws GBeanNotFoundException
Gets the time the specified GBean was started


isGBeanEnabled

public boolean isGBeanEnabled(javax.management.ObjectName name)
                       throws GBeanNotFoundException
Is the specified GBean enabled?


setGBeanEnabled

public void setGBeanEnabled(javax.management.ObjectName name,
                            boolean enabled)
                     throws GBeanNotFoundException
Sets the eneabled status of the specified GBean. A disabled gbean can not be started, and will not be started via startRecursive.


getClassLoaderFor

public java.lang.ClassLoader getClassLoaderFor(javax.management.ObjectName name)
                                        throws GBeanNotFoundException
Gets the ClassLoader used to register the specified GBean


getGBeanInfo

public org.apache.geronimo.gbean.GBeanInfo getGBeanInfo(javax.management.ObjectName name)
                                                 throws GBeanNotFoundException
Return the GBeanInfo for a registered GBean instance.


getGBeanData

public org.apache.geronimo.gbean.GBeanData getGBeanData(javax.management.ObjectName name)
                                                 throws GBeanNotFoundException,
                                                        InternalKernelException
Return the GBeanData for a GBean instance.


listGBeans

public java.util.Set listGBeans(javax.management.ObjectName pattern)
Returns a Set of all GBeans matching the object name pattern


listGBeans

public java.util.Set listGBeans(java.util.Set patterns)
Returns a Set of all GBeans matching the set of object name pattern


getAttribute

public java.lang.Object getAttribute(javax.management.ObjectName objectName,
                                     java.lang.String attributeName)
                              throws GBeanNotFoundException,
                                     NoSuchAttributeException,
                                     java.lang.Exception
Gets the value of an attribute on the specified gbean


setAttribute

public void setAttribute(javax.management.ObjectName objectName,
                         java.lang.String attributeName,
                         java.lang.Object attributeValue)
                  throws GBeanNotFoundException,
                         NoSuchAttributeException,
                         java.lang.Exception
Sets the value of an attribute on the specified gbean


invoke

public java.lang.Object invoke(javax.management.ObjectName objectName,
                               java.lang.String methodName)
                        throws GBeanNotFoundException,
                               NoSuchOperationException,
                               InternalKernelException,
                               java.lang.Exception
Invokes a no-argument method on the specified GBean


invoke

public java.lang.Object invoke(javax.management.ObjectName objectName,
                               java.lang.String methodName,
                               java.lang.Object[] args,
                               java.lang.String[] types)
                        throws GBeanNotFoundException,
                               NoSuchOperationException,
                               InternalKernelException,
                               java.lang.Exception
Invokes a method on the specified GBean with the specified arguments


boot

public void boot()
          throws java.lang.Exception
Brings the kernel online


getBootTime

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


registerShutdownHook

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


unregisterShutdownHook

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


shutdown

public void shutdown()
Stops the kernel


isRunning

public boolean isRunning()
Has the kernel been booted