|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.avalon.merlin.kernel.impl.DefaultKernel
Implementation of the default Merlin Kernel.
Constructor Summary | |
DefaultKernel(KernelContext context)
Creation of a new Merlin Kernel. |
|
DefaultKernel(javax.management.MBeanServer server,
KernelContext context)
Creation of a new Merlin Kernel. |
Method Summary | |
String |
getHomeDirectoryPath()
Return the home path |
String |
getKernelState()
Return the state of the kernel. |
String |
getLibraryDirectoryPath()
Return the library path |
long |
getMemoryFree()
Return an approximation to the total amount of memory currently available for future allocated objects, measured in bytes. |
long |
getMemoryTotal()
Returns the total amount of memory in the Java virtual machine. |
int |
getMemoryVariableRatio()
Return the percentage of free memory available. |
String |
getRepositoryDirectoryPath()
Return the runtime repository path. |
String |
getTempDirectoryPath()
Return the temporary directory path |
int |
getThreadCount()
Return the number of active threads. |
void |
release(Object source,
Object instance)
Release an object |
Object |
resolve(Object source)
Resolve a object to a value. |
Object |
resolve(Object source,
Class[] ref)
Resolve a object to a value relative to a supplied set of interface classes. |
void |
shutdown()
Shutdown the kernel during which orderly shutdown of all installed blocks is undertaken. |
void |
startup()
Initiate the establishment of the root container. |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultKernel(KernelContext context) throws KernelException
context
- the kernel context
KKernelException
- if a kernel creation error occurs
KernelException
public DefaultKernel(javax.management.MBeanServer server, KernelContext context) throws KernelException
context
- the kernel context
KernelException
- if a kernel creation error occursMethod Detail |
public String getKernelState()
getKernelState
in interface DefaultKernelMBean
public long getMemoryFree()
getMemoryFree
in interface DefaultKernelMBean
public long getMemoryTotal()
getMemoryTotal
in interface DefaultKernelMBean
public int getMemoryVariableRatio()
getMemoryVariableRatio
in interface DefaultKernelMBean
public int getThreadCount()
getThreadCount
in interface DefaultKernelMBean
public String getRepositoryDirectoryPath()
getRepositoryDirectoryPath
in interface DefaultKernelMBean
public String getHomeDirectoryPath()
getHomeDirectoryPath
in interface DefaultKernelMBean
public String getTempDirectoryPath()
getTempDirectoryPath
in interface DefaultKernelMBean
public String getLibraryDirectoryPath()
getLibraryDirectoryPath
in interface DefaultKernelMBean
public Object resolve(Object source) throws Exception
resolve
in interface Home
source
- the context within the the resolution is applied
Exception
- if an error occurspublic Object resolve(Object source, Class[] ref) throws Exception
resolve
in interface Home
source
- the aquiring sourceref
- the castable service classes
Exception
- if an error occurspublic void release(Object source, Object instance)
release
in interface Home
source
- the client that obtained the intial referenceinstance
- the object to be releasedpublic void startup() throws Exception
startup
in interface Controller
Exception
- if a startup error occurspublic void shutdown()
shutdown
in interface Controller
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |