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

java.lang.Object
  extended byorg.apache.geronimo.j2ee.management.impl.JVMImpl
All Implemented Interfaces:
org.apache.geronimo.management.J2EEManagedObject, org.apache.geronimo.management.geronimo.JVM, org.apache.geronimo.management.JVM, org.apache.geronimo.management.StatisticsProvider

public class JVMImpl
extends Object
implements org.apache.geronimo.management.geronimo.JVM, org.apache.geronimo.management.StatisticsProvider

Version:
$Rev: 396206 $ $Date: 2006-04-23 04:55:45 +0200 (Sun, 23 Apr 2006) $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
static String JAVA_VENDOR
           
static String JAVA_VERSION
           
static String NODE
           
 
Constructor Summary
JVMImpl(String objectName, org.apache.geronimo.kernel.Kernel kernel, org.apache.geronimo.system.logging.SystemLog systemLog)
           
 
Method Summary
 int getAvailableProcessors()
           
static org.apache.geronimo.gbean.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()
           
 javax.management.j2ee.statistics.Stats getStats()
           
 org.apache.geronimo.system.logging.SystemLog getSystemLog()
           
 Properties getSystemProperties()
           
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
 
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 org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

JVMImpl

public JVMImpl(String objectName,
               org.apache.geronimo.kernel.Kernel kernel,
               org.apache.geronimo.system.logging.SystemLog systemLog)
Method Detail

getObjectName

public String getObjectName()
Specified by:
getObjectName in interface org.apache.geronimo.management.J2EEManagedObject

isStateManageable

public boolean isStateManageable()
Specified by:
isStateManageable in interface org.apache.geronimo.management.J2EEManagedObject

isStatisticsProvider

public boolean isStatisticsProvider()
Specified by:
isStatisticsProvider in interface org.apache.geronimo.management.J2EEManagedObject

isEventProvider

public boolean isEventProvider()
Specified by:
isEventProvider in interface org.apache.geronimo.management.J2EEManagedObject

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 org.apache.geronimo.management.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 org.apache.geronimo.management.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 org.apache.geronimo.management.JVM
Returns:
the node we are running on
See Also:
"JSR77.3.4.1.3"

getAvailableProcessors

public int getAvailableProcessors()
Specified by:
getAvailableProcessors in interface org.apache.geronimo.management.geronimo.JVM

getKernelBootTime

public Date getKernelBootTime()
Specified by:
getKernelBootTime in interface org.apache.geronimo.management.geronimo.JVM

getStats

public javax.management.j2ee.statistics.Stats getStats()
Specified by:
getStats in interface org.apache.geronimo.management.StatisticsProvider

getSystemProperties

public Properties getSystemProperties()
Specified by:
getSystemProperties in interface org.apache.geronimo.management.geronimo.JVM

getSystemLog

public org.apache.geronimo.system.logging.SystemLog getSystemLog()
Specified by:
getSystemLog in interface org.apache.geronimo.management.geronimo.JVM

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


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