org.apache.geronimo.j2ee.management.impl
Class JVMImpl
java.lang.Object
org.apache.geronimo.j2ee.management.impl.JVMImpl
- All Implemented Interfaces:
- J2EEManagedObject, JVM, StatisticsProvider
public class JVMImpl
- extends java.lang.Object
- implements JVM, StatisticsProvider
- Version:
- $Rev: 561094 $ $Date: 2007-07-31 03:05:20 +0800 (Tue, 31 Jul 2007) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVA_VERSION
public static final java.lang.String JAVA_VERSION
JAVA_VENDOR
public static final java.lang.String JAVA_VENDOR
NODE
public static final java.lang.String NODE
GBEAN_INFO
public static final GBeanInfo GBEAN_INFO
JVMImpl
public JVMImpl(java.lang.String objectName,
Kernel kernel,
SystemLog systemLog)
getObjectName
public java.lang.String getObjectName()
- Specified by:
getObjectName in interface J2EEManagedObject
isStateManageable
public boolean isStateManageable()
- Specified by:
isStateManageable in interface J2EEManagedObject
isStatisticsProvider
public boolean isStatisticsProvider()
- Specified by:
isStatisticsProvider in interface J2EEManagedObject
isEventProvider
public boolean isEventProvider()
- Specified by:
isEventProvider in interface J2EEManagedObject
getJavaVersion
public java.lang.String getJavaVersion()
- The version of the JVMImpl we are running on.
This is the value of java.version system property
- Specified by:
getJavaVersion in interface JVM
- Returns:
- the JVMImpl version
- See Also:
- "JSR77.3.4.1.1"
getJavaVendor
public java.lang.String getJavaVendor()
- The vendor of the JVMImpl we are running on.
This is the value of java.vendor system property
- Specified by:
getJavaVendor in interface JVM
- Returns:
- the JVMImpl version
- See Also:
- "JSR77.3.4.1.2"
getNode
public java.lang.String getNode()
- The node we are running on.
This is the fully qualified host name returned for InetAddress.getLocalHost.toString();
we return null if there is no network
- Specified by:
getNode in interface JVM
- Returns:
- the node we are running on
- See Also:
- "JSR77.3.4.1.3"
getAvailableProcessors
public int getAvailableProcessors()
getKernelBootTime
public java.util.Date getKernelBootTime()
getStats
public javax.management.j2ee.statistics.Stats getStats()
- Specified by:
getStats in interface StatisticsProvider
resetStats
public void resetStats()
- Specified by:
resetStats in interface StatisticsProvider
getSystemProperties
public java.util.Properties getSystemProperties()
getSystemLog
public SystemLog getSystemLog()
getGBeanInfo
public static GBeanInfo getGBeanInfo()
Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.