org.jboss.system.server
Interface ServerInfoMBean

All Known Implementing Classes:
ServerInfo

public interface ServerInfoMBean

MBean interface.


Field Summary
static javax.management.ObjectName OBJECT_NAME
           
 
Method Summary
 String displayInfoForClass(String className)
          Display the ClassLoader, ProtectionDomain and Package information for the specified class.
 String displayPackageInfo(String pkgName)
          Display the java.lang.Package info for the pkgName
 Integer getActiveThreadCount()
           
 Integer getActiveThreadGroupCount()
           
 Integer getAvailableProcessors()
          Returns Runtime.getRuntime().availableProcessors() on JDK 1.4 vms or -1 on previous versions.
 Long getFreeMemory()
           
 String getHostAddress()
          Returns InetAddress.getLocalHost().getHostAddress();
 String getHostName()
          Returns InetAddress.getLocalHost().getHostName();
 String getJavaVendor()
           
 String getJavaVersion()
           
 String getJavaVMName()
           
 String getJavaVMVendor()
           
 String getJavaVMVersion()
           
 Long getMaxMemory()
          Returns Runtime.getRuntime().maxMemory() on JDK 1.4 vms or -1 on previous versions.
 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.
 

Field Detail

OBJECT_NAME

static final javax.management.ObjectName OBJECT_NAME
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()

getTotalMemory

Long getTotalMemory()

getFreeMemory

Long getFreeMemory()

getMaxMemory

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


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

getActiveThreadCount

Integer getActiveThreadCount()

getActiveThreadGroupCount

Integer getActiveThreadGroupCount()

listThreadDump

String listThreadDump()
Return a listing of the active threads and thread groups.


listThreadCpuUtilization

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


displayPackageInfo

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


displayInfoForClass

String displayInfoForClass(String className)
                           throws Exception
Display the ClassLoader, ProtectionDomain and Package information for the specified class.

Returns:
a simple html report of this information
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.