org.apache.avalon.merlin.kernel.impl
Interface DefaultKernelMBean

All Superinterfaces:
Controller
All Known Implementing Classes:
DefaultKernel

public interface DefaultKernelMBean
extends Controller

Management interface for the Merlin Kernel.

Version:
$Revision: 1.2 $ $Date: 2003/09/07 11:34:14 $
Author:
Avalon Development Team

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.
 
Methods inherited from interface org.apache.avalon.merlin.kernel.Controller
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

getRepositoryDirectoryPath

public String getRepositoryDirectoryPath()
Return the runtime repository path.

Returns:
the repository path

getHomeDirectoryPath

public String getHomeDirectoryPath()
Return the home path

Returns:
the home path (possibly null)

getTempDirectoryPath

public String getTempDirectoryPath()
Return the temporary directory path

Returns:
the path (possibly null)

getLibraryDirectoryPath

public String getLibraryDirectoryPath()
Return the library path

Returns:
the path (possibly null)


Copyright © Apache Software Foundation. All Rights Reserved.