org.ow2.jonas.lib.jmbeans
Class JavaVm
java.lang.Object
org.ow2.jonas.lib.management.javaee.ManagedObject
org.ow2.jonas.lib.management.javaee.J2EEManagedObject
org.ow2.jonas.lib.jmbeans.JavaVm
public class JavaVm
- extends J2EEManagedObject
The Java Virtual Machine used by the JOnAS server.
- Author:
- Adriana Danes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaVm
public JavaVm(String pObjectName,
ServerProperties props)
- Construct JavaVM MBean.
- Parameters:
pObjectName
- The MBean's OBJECT_NAMEprops
- the JOnAS server's configuration properties.
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.
getJavaHome
public String getJavaHome()
- Returns:
- The java.home environment property.
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 © 2010 OW2 Consortium. All Rights Reserved.