|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.system.server.ServerInfo
An MBean that provides a rich view of system information for the JBoss server in which it is deployed.
Field Summary | |
static javax.management.ObjectName |
DEFAULT_LOADER_REPOSITORY
|
Fields inherited from interface org.jboss.system.server.ServerInfoMBean |
OBJECT_NAME |
Constructor Summary | |
ServerInfo()
|
Method Summary | |
String |
displayAllPackageInfo()
This does not work as expected because the thread context class loader is not used to determine which class loader the package list is obtained from. |
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 |
listThreadDump()
Return a listing of the active threads and thread groups. |
void |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final javax.management.ObjectName DEFAULT_LOADER_REPOSITORY
Constructor Detail |
public ServerInfo()
Method Detail |
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws Exception
preRegister
in interface javax.management.MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface javax.management.MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public String getJavaVersion()
getJavaVersion
in interface ServerInfoMBean
public String getJavaVendor()
getJavaVendor
in interface ServerInfoMBean
public String getJavaVMName()
getJavaVMName
in interface ServerInfoMBean
public String getJavaVMVersion()
getJavaVMVersion
in interface ServerInfoMBean
public String getJavaVMVendor()
getJavaVMVendor
in interface ServerInfoMBean
public String getOSName()
getOSName
in interface ServerInfoMBean
public String getOSVersion()
getOSVersion
in interface ServerInfoMBean
public String getOSArch()
getOSArch
in interface ServerInfoMBean
public Long getTotalMemory()
getTotalMemory
in interface ServerInfoMBean
public Long getFreeMemory()
getFreeMemory
in interface ServerInfoMBean
public Long getMaxMemory()
getMaxMemory
in interface ServerInfoMBean
public Integer getAvailableProcessors()
getAvailableProcessors
in interface ServerInfoMBean
public String getHostName()
getHostName
in interface ServerInfoMBean
public String getHostAddress()
getHostAddress
in interface ServerInfoMBean
public Integer getActiveThreadCount()
getActiveThreadCount
in interface ServerInfoMBean
public Integer getActiveThreadGroupCount()
getActiveThreadGroupCount
in interface ServerInfoMBean
public String listThreadDump()
listThreadDump
in interface ServerInfoMBean
public String displayPackageInfo(String pkgName)
displayPackageInfo
in interface ServerInfoMBean
public String displayInfoForClass(String className) throws Exception
displayInfoForClass
in interface ServerInfoMBean
Exception
public String displayAllPackageInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |