com.caucho.management.j2ee
Class JVM

java.lang.Object
  extended by com.caucho.management.j2ee.J2EEManagedObject
      extended by com.caucho.management.j2ee.JVM
All Implemented Interfaces:
StatisticsProvider<JVMStats>

public class JVM
extends J2EEManagedObject
implements StatisticsProvider<JVMStats>

Management interface for the JVM.


Field Summary
 
Fields inherited from class com.caucho.management.j2ee.J2EEManagedObject
_objectName
 
Constructor Summary
JVM()
           
 
Method Summary
 java.lang.String getJavaVendor()
          Returns the java vendor
 java.lang.String getJavaVersion()
          Returns the java version
protected  java.lang.String getName()
          Returns the value to use for the the `name' key of the ObjectName.
 java.lang.String getNode()
          Returns the machine the JVM is running on, i.e.
 JVMStats getStats()
          Returns the statistics for the managed object.
protected  boolean isJ2EEApplication()
          Returns true if the ObjectName should include the J2EEApplication key.
 
Methods inherited from class com.caucho.management.j2ee.J2EEManagedObject
createObjectName, getObjectName, isEventProvider, isJ2EEServer, isStateManageable, isStatisticsProvider, queryObjectNames, queryObjectNamesSet, quote, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVM

public JVM()
Method Detail

getName

protected java.lang.String getName()
Description copied from class: J2EEManagedObject
Returns the value to use for the the `name' key of the ObjectName. The returned value is raw, users of the method must escape the returned value for use in an ObjectName.

Specified by:
getName in class J2EEManagedObject

isJ2EEApplication

protected boolean isJ2EEApplication()
Description copied from class: J2EEManagedObject
Returns true if the ObjectName should include the J2EEApplication key. The default implementation returns true, derived class override to return false if there should not be a J2EEApplication key.

Overrides:
isJ2EEApplication in class J2EEManagedObject

getJavaVersion

public java.lang.String getJavaVersion()
Returns the java version


getJavaVendor

public java.lang.String getJavaVendor()
Returns the java vendor


getNode

public java.lang.String getNode()
Returns the machine the JVM is running on, i.e. the fully qualified hostname.


getStats

public JVMStats getStats()
Description copied from interface: StatisticsProvider
Returns the statistics for the managed object.

Specified by:
getStats in interface StatisticsProvider<JVMStats>