org.jboss.system.server
Interface ServerInfoMBean

All Known Implementing Classes:
ServerInfo

public interface ServerInfoMBean

ServerInfo MBean interface.

Version:
$Revision: 81032 $

Field Summary
static String OBJECT_NAME_STR
          The default ObjectName
 
Method Summary
 String displayPackageInfo(String pkgName)
          Display the java.lang.Package info for the pkgName
 Integer getActiveThreadCount()
           
 Integer getActiveThreadGroupCount()
           
 Integer getAvailableProcessors()
           
 Long getFreeMemory()
           
 String getHostAddress()
           
 String getHostName()
           
 String getJavaVendor()
           
 String getJavaVersion()
           
 String getJavaVMName()
           
 String getJavaVMVendor()
           
 String getJavaVMVersion()
           
 Long getMaxMemory()
           
 String getOSArch()
           
 String getOSName()
           
 String getOSVersion()
           
 Long getTotalMemory()
           
 String listMemoryPools(boolean fancy)
          Return a listing of the thread pools on jdk5+.
 String listThreadCpuUtilization()
          Return a sort list of thread cpu utilization.
 String listThreadDump()
          Return a listing of the active threads and thread groups, and a full stack trace for every thread, on jdk5+.
 

Field Detail

OBJECT_NAME_STR

static final String OBJECT_NAME_STR
The default ObjectName

See Also:
Constant Field Values
Method Detail

getJavaVersion

String getJavaVersion()

getJavaVendor

String getJavaVendor()

getJavaVMName

String getJavaVMName()

getJavaVMVersion

String getJavaVMVersion()

getJavaVMVendor

String getJavaVMVendor()

getOSName

String getOSName()

getOSVersion

String getOSVersion()

getOSArch

String getOSArch()

getActiveThreadCount

Integer getActiveThreadCount()

getActiveThreadGroupCount

Integer getActiveThreadGroupCount()

getMaxMemory

Long getMaxMemory()
Returns:
Runtime.getRuntime().maxMemory() on JDK 1.4 vms or -1 on previous versions.

getTotalMemory

Long getTotalMemory()

getFreeMemory

Long getFreeMemory()

getAvailableProcessors

Integer getAvailableProcessors()
Returns:
Runtime.getRuntime().availableProcessors() on JDK 1.4 vms or -1 on previous versions.

getHostName

String getHostName()
Returns:
InetAddress.getLocalHost().getHostName();

getHostAddress

String getHostAddress()
Returns:
InetAddress.getLocalHost().getHostAddress();

listMemoryPools

String listMemoryPools(boolean fancy)
Return a listing of the thread pools on jdk5+.

Parameters:
fancy - produce a text-based graph when true
Returns:
the memory pools

listThreadDump

String listThreadDump()
Return a listing of the active threads and thread groups, and a full stack trace for every thread, on jdk5+.

Returns:
the thread dump

listThreadCpuUtilization

String listThreadCpuUtilization()
Return a sort list of thread cpu utilization.

Returns:
the cpu utilization

displayPackageInfo

String displayPackageInfo(String pkgName)
Display the java.lang.Package info for the pkgName

Parameters:
pkgName - the package name
Returns:
the package info


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.