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 Object
implements JVM, StatisticsProvider


Field Summary
static GBeanInfo GBEAN_INFO
           
static String JAVA_VENDOR
           
static String JAVA_VERSION
           
static String NODE
           
 
Constructor Summary
JVMImpl(String objectName, Kernel kernel, SystemLog systemLog)
           
 
Method Summary
 int getAvailableProcessors()
           
static GBeanInfo getGBeanInfo()
           
 String getJavaVendor()
          The vendor of the JVMImpl we are running on.
 String getJavaVersion()
          The version of the JVMImpl we are running on.
 Date getKernelBootTime()
           
 String getNode()
          The node we are running on.
 String getObjectName()
          Gets the unique name of this object.
 Stats getStats()
          Gets the statistics collected for this class.
 SystemLog getSystemLog()
           
 Properties getSystemProperties()
           
 boolean isEventProvider()
          Determines if this object implemnts the event provider type defined in the J2EE Management specification.
 boolean isStateManageable()
          Determines if this object implements the state manageable type defined in the J2EE Management specification.
 boolean isStatisticsProvider()
          Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.
 void resetStats()
          Reset the startTime for all statistics
 
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 String JAVA_VERSION

JAVA_VENDOR

public static final String JAVA_VENDOR

NODE

public static final String NODE

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

JVMImpl

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

getObjectName

public String getObjectName()
Description copied from interface: J2EEManagedObject
Gets the unique name of this object. The object name must comply with the ObjectName specification in the JMX specification and the restrictions in the J2EEManagementInterface.

Specified by:
getObjectName in interface J2EEManagedObject
Returns:
the unique name of this object within the server

isStateManageable

public boolean isStateManageable()
Description copied from interface: J2EEManagedObject
Determines if this object implements the state manageable type defined in the J2EE Management specification.

Specified by:
isStateManageable in interface J2EEManagedObject
Returns:
true if this class also implements the state manageable type; false otherwise

isStatisticsProvider

public boolean isStatisticsProvider()
Description copied from interface: J2EEManagedObject
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.

Specified by:
isStatisticsProvider in interface J2EEManagedObject
Returns:
true if this class also implements the statistics provider type; false otherwise

isEventProvider

public boolean isEventProvider()
Description copied from interface: J2EEManagedObject
Determines if this object implemnts the event provider type defined in the J2EE Management specification.

Specified by:
isEventProvider in interface J2EEManagedObject
Returns:
true if this class also implements the event manageable type; false otherwise

getJavaVersion

public 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 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 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 Date getKernelBootTime()

getStats

public Stats getStats()
Description copied from interface: StatisticsProvider
Gets the statistics collected for this class. The first call to this method initializes the startTime for all statistics.

Specified by:
getStats in interface StatisticsProvider
Returns:
gets collected for this class

resetStats

public void resetStats()
Description copied from interface: StatisticsProvider
Reset the startTime for all statistics

Specified by:
resetStats in interface StatisticsProvider

getSystemProperties

public Properties getSystemProperties()

getSystemLog

public SystemLog getSystemLog()

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.