|
|||||||||||
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.impl.DefaultKernel
Implementation of the default Merlin Kernel.
Constructor Summary | |
DefaultKernel(Logger logger,
KernelCriteria criteria,
Block system,
Block application)
Creation of a new Merlin Kernel. |
Method Summary | |
String |
getAnchorPath()
Return the anchor directory to be used when resolving library declarations in classload specifications. |
Block |
getBlock()
Return the root application block. |
String |
getConfigPath()
Return the root directory to the merlin configurations |
String |
getContextPath()
Return the context directory from which relative runtime home directories will be established for components referencing urn:avalon:home |
String |
getHomePath()
Return the root directory to the merlin installation |
String |
getKernelPath()
Return the url to the kernel confiuration |
String |
getKernelState()
Return the state of the kernel. |
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 |
getRepositoryDirectory()
Return the root directory to the shared repository. |
String |
getSystemPath()
Return the root directory to the merlin system repository |
String |
getTempPath()
Return the temporary directory. |
int |
getThreadCount()
Return the number of active threads. |
String |
getWorkingPath()
Return the working client directory. |
boolean |
isDebugEnabled()
Return debug policy. |
boolean |
isInfoEnabled()
Return info generation policy. |
Appliance |
locate(String path)
Return the block matching the supplied path. |
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(Logger logger, KernelCriteria criteria, Block system, Block application) throws KernelException
logger
- the assigned logging channelcriteria
- the kernel creation criteriasystem
- the system blockapplication
- the application block
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 getRepositoryDirectory()
getRepositoryDirectory
in interface DefaultKernelMBean
public String getHomePath()
getHomePath
in interface DefaultKernelMBean
public String getSystemPath()
getSystemPath
in interface DefaultKernelMBean
public String getConfigPath()
getConfigPath
in interface DefaultKernelMBean
public String getKernelPath()
getKernelPath
in interface DefaultKernelMBean
public String getWorkingPath()
getWorkingPath
in interface DefaultKernelMBean
public String getTempPath()
getTempPath
in interface DefaultKernelMBean
public String getContextPath()
getContextPath
in interface DefaultKernelMBean
public String getAnchorPath()
getAnchorPath
in interface DefaultKernelMBean
public boolean isInfoEnabled()
isInfoEnabled
in interface DefaultKernelMBean
public boolean isDebugEnabled()
isDebugEnabled
in interface DefaultKernelMBean
public Appliance locate(String path) throws KernelException
locate
in interface Kernel
path
- an appliance path
KernelException
public Block getBlock()
getBlock
in interface Kernel
public void startup() throws Exception
startup
in interface KernelController
Exception
- if a startup error occurspublic void shutdown()
shutdown
in interface KernelController
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |