org.apache.geronimo.j2ee.management.impl
Class JVMImpl

java.lang.Object
  extended by 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) $

Field Summary
static GBeanInfo GBEAN_INFO
           
static java.lang.String JAVA_VENDOR
           
static java.lang.String JAVA_VERSION
           
static java.lang.String NODE
           
 
Constructor Summary
JVMImpl(java.lang.String objectName, Kernel kernel, SystemLog systemLog)
           
 
Method Summary
 int getAvailableProcessors()
           
static GBeanInfo getGBeanInfo()
           
 java.lang.String getJavaVendor()
          The vendor of the JVMImpl we are running on.
 java.lang.String getJavaVersion()
          The version of the JVMImpl we are running on.
 java.util.Date getKernelBootTime()
           
 java.lang.String getNode()
          The node we are running on.
 java.lang.String getObjectName()
           
 javax.management.j2ee.statistics.Stats getStats()
           
 SystemLog getSystemLog()
           
 java.util.Properties getSystemProperties()
           
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
 void resetStats()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JVMImpl

public JVMImpl(java.lang.String objectName,
               Kernel kernel,
               SystemLog systemLog)
Method Detail

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.