org.objectweb.jonas.server
Class JavaVm

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
          extended by org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended by 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

Field Summary
 
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
JavaVm(String pObjectName, JProp pProps)
          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.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider
 
Methods inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
initLogger, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
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,
              JProp pProps)
Construct JavaVM MBean

Parameters:
pObjectName - The MBean's OBJECT_NAME
pProps - JProp object containing current JVM's properties
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 © 2007 OW2 Consortium. All Rights Reserved.