org.ow2.jonas.lib.jmbeans
Class JavaVm

java.lang.Object
  extended by org.ow2.jonas.lib.jmbeans.J2EEManagedObject
      extended by org.ow2.jonas.lib.jmbeans.JavaVm

public class JavaVm
extends J2EEManagedObject

The Java Virtual Machine used by the JOnAS server.

Author:
Adriana Danes

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.jmbeans.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Constructor Summary
JavaVm(String pObjectName, org.ow2.jonas.properties.ServerProperties props)
          Construct JavaVM MBean
 
Method Summary
 int getAllThreadsCount()
           
 String getJavaVendor()
           
 String getJavaVersion()
           
 String getNode()
           
 String[] getThreadGroups()
           
protected  ThreadGroup getTopLevelThreadGroup()
           
 String[] listThreads(String name)
           
 
Methods inherited from class org.ow2.jonas.lib.jmbeans.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider, sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaVm

public JavaVm(String pObjectName,
              org.ow2.jonas.properties.ServerProperties props)
Construct JavaVM MBean

Parameters:
pObjectName - The MBean's OBJECT_NAME
Method Detail

getJavaVersion

public String getJavaVersion()
Returns:
The JVM version.

getJavaVendor

public String getJavaVendor()
Returns:
The JVM vendor.

getNode

public String getNode()
Returns:
The node (machine) the JVM is running on.

getTopLevelThreadGroup

protected ThreadGroup getTopLevelThreadGroup()
Returns:
the system threadGroup

getAllThreadsCount

public int getAllThreadsCount()
Returns:
the number of threads in the JOnAS server

getThreadGroups

public String[] getThreadGroups()
Returns:
the list of threadgroups name

listThreads

public String[] listThreads(String name)
Parameters:
name - name of the thread group
Returns:
the name of thread names


Copyright © 2008 OW2 Consortium. All Rights Reserved.