org.objectweb.jonas.server
Class JavaVm
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
org.objectweb.jonas.server.JavaVm
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter
public class JavaVm
- extends J2EEManagedObject
The Java Virtual Machine used by the JOnAS server.
- Author:
- Michel-Ange Anton
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaVm
public JavaVm(String pObjectName,
JProp pProps)
- Construct JavaVM MBean
- Parameters:
pObjectName
- The MBean's OBJECT_NAMEpProps
- JProp object containing current JVM's 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.
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 © 2007 OW2 Consortium. All Rights Reserved.