Home » geronimo-2.2-source-release » org.apache.geronimo.kernel » [javadoc | source]
org.apache.geronimo.kernel
public interface: Kernel [javadoc | source]

All Known Implementing Classes:
    KernelDelegate, KernelDelegate, KernelGBean, BasicKernel

Field Summary
 ObjectName KERNEL    The JMX name used by a Kernel to register itself when it boots. 
 AbstractName KERNEL_NAME     
Method from org.apache.geronimo.kernel.Kernel Summary:
boot,   getAbstractNameFor,   getAttribute,   getAttribute,   getAttribute,   getAttribute,   getAttribute,   getBootTime,   getClassLoaderFor,   getClassLoaderFor,   getClassLoaderFor,   getClassLoaderFor,   getDependencyManager,   getGBean,   getGBean,   getGBean,   getGBean,   getGBean,   getGBeanData,   getGBeanData,   getGBeanData,   getGBeanData,   getGBeanInfo,   getGBeanInfo,   getGBeanInfo,   getGBeanInfo,   getGBeanInfo,   getGBeanStartTime,   getGBeanStartTime,   getGBeanStartTime,   getGBeanStartTime,   getGBeanState,   getGBeanState,   getGBeanState,   getGBeanState,   getGBeanState,   getKernelName,   getLifecycleMonitor,   getNaming,   getProxyManager,   getShortNameFor,   getStateReason,   invoke,   invoke,   invoke,   invoke,   invoke,   invoke,   invoke,   invoke,   invoke,   invoke,   isLoaded,   isLoaded,   isLoaded,   isLoaded,   isRunning,   isRunning,   isRunning,   isRunning,   isRunning,   listGBeans,   listGBeans,   listGBeans,   loadGBean,   registerShutdownHook,   setAttribute,   setAttribute,   setAttribute,   setAttribute,   shutdown,   startGBean,   startGBean,   startGBean,   startGBean,   startRecursiveGBean,   startRecursiveGBean,   startRecursiveGBean,   startRecursiveGBean,   stopGBean,   stopGBean,   stopGBean,   stopGBean,   unloadGBean,   unloadGBean,   unloadGBean,   unloadGBean,   unregisterShutdownHook
Method from org.apache.geronimo.kernel.Kernel Detail:
 public  void boot() throws Exception
    Brings the kernel online
 public 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.
 public Object getAttribute(AbstractName name,
    String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
    Gets the value of an attribute on the specified gbean
 public Object getAttribute(String shortName,
    String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
 public Object getAttribute(Class type,
    String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
 public Object getAttribute(ObjectName name,
    String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, ExceptionDeprecated! Use -  AbstractName version instead

 public Object getAttribute(String shortName,
    Class type,
    String attributeName) throws GBeanNotFoundException, NoSuchAttributeException, Exception
 public Date getBootTime()
    Returns the time this kernel was last booted.
 public ClassLoader getClassLoaderFor(AbstractName name) throws GBeanNotFoundException
    Gets the ClassLoader used to register the specified GBean
 public ClassLoader getClassLoaderFor(String shortName) throws GBeanNotFoundException
 public ClassLoader getClassLoaderFor(Class type) throws GBeanNotFoundException
 public ClassLoader getClassLoaderFor(String shortName,
    Class type) throws GBeanNotFoundException
 public DependencyManager getDependencyManager()
    Gets the dependency manager kernel service
 public Object getGBean(AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
    Gets the specified GBean instance.
 public Object getGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public T getGBean(Class<T> type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public Object getGBean(ObjectName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateExceptionDeprecated! Use -  AbstractName version instead

 public T getGBean(String shortName,
    Class<T> type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public GBeanData getGBeanData(AbstractName name) throws GBeanNotFoundException, InternalKernelException
    Return the GBeanData for a GBean instance.
 public GBeanData getGBeanData(String shortName) throws GBeanNotFoundException, InternalKernelException
 public GBeanData getGBeanData(Class type) throws GBeanNotFoundException, InternalKernelException
 public GBeanData getGBeanData(String shortName,
    Class type) throws GBeanNotFoundException, InternalKernelException
 public GBeanInfo getGBeanInfo(AbstractName name) throws GBeanNotFoundException
    Return the GBeanInfo for a registered GBean instance.
 public GBeanInfo getGBeanInfo(String shortName) throws GBeanNotFoundException
 public GBeanInfo getGBeanInfo(Class type) throws GBeanNotFoundException
 public GBeanInfo getGBeanInfo(ObjectName name) throws GBeanNotFoundExceptionDeprecated! Use -  AbstractName version instead

 public GBeanInfo getGBeanInfo(String shortName,
    Class type) throws GBeanNotFoundException
 public long getGBeanStartTime(AbstractName name) throws GBeanNotFoundException
    Gets the time the specified GBean was started
 public long getGBeanStartTime(String shortName) throws GBeanNotFoundException
 public long getGBeanStartTime(Class type) throws GBeanNotFoundException
 public long getGBeanStartTime(String shortName,
    Class type) throws GBeanNotFoundException
 public int getGBeanState(AbstractName name) throws GBeanNotFoundException
    Gets the state of the specified GBean.
 public int getGBeanState(String shortName) throws GBeanNotFoundException
 public int getGBeanState(Class type) throws GBeanNotFoundException
 public int getGBeanState(ObjectName name) throws GBeanNotFoundExceptionDeprecated! Use -  AbstractName version instead

 public int getGBeanState(String shortName,
    Class type) throws GBeanNotFoundException
 public String getKernelName()
    Get the name of this kernel
 public LifecycleMonitor getLifecycleMonitor()
    Gets the lifecycle monitor kernel service
 public Naming getNaming()
    Gets the naming system used by this kernel.
 public ProxyManager getProxyManager()
    Gets the proxy manager kernel service
 public 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.
 public String getStateReason(AbstractName abstractName)
 public Object invoke(AbstractName name,
    String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
    Invokes a no-argument method on the specified GBean
 public Object invoke(String shortName,
    String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
 public Object invoke(Class type,
    String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
 public Object invoke(ObjectName name,
    String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, ExceptionDeprecated! Use -  AbstractName version instead

 public Object invoke(String shortName,
    Class type,
    String methodName) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
 public 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
 public Object invoke(String shortName,
    String methodName,
    Object[] args,
    String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
 public Object invoke(Class type,
    String methodName,
    Object[] args,
    String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
 public Object invoke(ObjectName name,
    String methodName,
    Object[] args,
    String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, ExceptionDeprecated! Use -  AbstractName version instead

 public Object invoke(String shortName,
    Class type,
    String methodName,
    Object[] args,
    String[] types) throws GBeanNotFoundException, NoSuchOperationException, InternalKernelException, Exception
 public boolean isLoaded(AbstractName name)
    Is there a GBean registered with the kernel under the specified name?
 public boolean isLoaded(String shortName)
 public boolean isLoaded(Class type)
 public boolean isLoaded(String shortName,
    Class type)
 public boolean isRunning()
    Has the kernel been booted
 public boolean isRunning(AbstractName name)
    Is there a GBean registered with the kernel under the specified name and is it running?
 public boolean isRunning(String shortName)
 public boolean isRunning(Class type)
 public boolean isRunning(String shortName,
    Class type)
 public Set<AbstractName> listGBeans(AbstractNameQuery abstractNameQuery)
    Gets the AbstractNames of all GBeans matching the abstractNameQuery.
 public Set<AbstractName> listGBeans(Set abstractNameQueries)
    Returns a Set of all GBeans matching the set of object name pattern
 public Set<AbstractName> listGBeans(ObjectName pattern)Deprecated! Use -  AbstractNameQuery version instead

    Returns a Set with elements of type ObjectName
 public  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.
 public  void registerShutdownHook(Runnable hook)
    Registers a runnable to execute when the kernel is shutdown
 public  void setAttribute(AbstractName name,
    String attributeName,
    Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception
    Sets the value of an attribute on the specified gbean
 public  void setAttribute(String shortName,
    String attributeName,
    Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception
 public  void setAttribute(Class type,
    String attributeName,
    Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception
 public  void setAttribute(String shortName,
    Class type,
    String attributeName,
    Object attributeValue) throws GBeanNotFoundException, NoSuchAttributeException, Exception
 public  void shutdown()
    Stops the kernel
 public  void startGBean(AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
    Start a specific GBean.
 public  void startGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void startGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void startGBean(String shortName,
    Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void startRecursiveGBean(AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
    Start a specific GBean and its children.
 public  void startRecursiveGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void startRecursiveGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void startRecursiveGBean(String shortName,
    Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void stopGBean(AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
    Stop a specific GBean.
 public  void stopGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void stopGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void stopGBean(String shortName,
    Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void unloadGBean(AbstractName name) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
    Unload a specific GBean. This is intended for applications that are embedding the kernel.
 public  void unloadGBean(String shortName) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void unloadGBean(Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void unloadGBean(String shortName,
    Class type) throws GBeanNotFoundException, InternalKernelException, IllegalStateException
 public  void unregisterShutdownHook(Runnable hook)
    Unregisters a runnable from the list to execute when the kernel is shutdown