org.apache.avalon.merlin.impl
Interface DefaultKernelMBean

All Superinterfaces:
KernelController
All Known Implementing Classes:
DefaultKernel

public interface DefaultKernelMBean
extends KernelController

Management interface for the Merlin Kernel.

Version:
$Revision: 1.1 $ $Date: 2003/12/08 15:37:13 $
Author:
Avalon Development Team

Method Summary
 String getAnchorPath()
          Return the anchor directory to be used when resolving library declarations in classload specifications.
 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.
 
Methods inherited from interface org.apache.avalon.merlin.KernelController
shutdown, startup
 

Method Detail

getMemoryFree

public long getMemoryFree()
Return an approximation to the total amount of memory currently available for future allocated objects, measured in bytes.

Returns:
the number of bytes of estimated free memory

getMemoryTotal

public long getMemoryTotal()
Returns the total amount of memory in the Java virtual machine. The value returned by this method may vary over time, depending on the host environment.

Returns:
the total amount of memory currently available for current and future objects, measured in bytes.

getMemoryVariableRatio

public int getMemoryVariableRatio()
Return the percentage of free memory available.

Returns:
the free memory percentage

getThreadCount

public int getThreadCount()
Return the number of active threads.

Returns:
the active thread count

getKernelState

public String getKernelState()
Return the state of the kernel.

Returns:
a string representing the kernel state

getRepositoryDirectory

public String getRepositoryDirectory()
Return the root directory to the shared repository.

Returns:
the avalon home root repository directory

getHomePath

public String getHomePath()
Return the root directory to the merlin installation

Returns:
the merlin home directory

getSystemPath

public String getSystemPath()
Return the root directory to the merlin system repository

Returns:
the merlin system repository directory

getConfigPath

public String getConfigPath()
Return the root directory to the merlin configurations

Returns:
the merlin configuration directory

getKernelPath

public String getKernelPath()
Return the url to the kernel confiuration

Returns:
the kernel configuration url

getWorkingPath

public String getWorkingPath()
Return the working client directory.

Returns:
the working directory

getTempPath

public String getTempPath()
Return the temporary directory.

Returns:
the temp directory

getContextPath

public String getContextPath()
Return the context directory from which relative runtime home directories will be established for components referencing urn:avalon:home

Returns:
the working directory

getAnchorPath

public String getAnchorPath()
Return the anchor directory to be used when resolving library declarations in classload specifications.

Returns:
the anchor directory

isInfoEnabled

public boolean isInfoEnabled()
Return info generation policy. If TRUE the parameters related to deployment will be listed on startup.

Returns:
the info policy

isDebugEnabled

public boolean isDebugEnabled()
Return debug policy. If TRUE all logging channels will be set to debug level (useful for debugging).

Returns:
the debug policy


Copyright © Apache Software Foundation. All Rights Reserved.