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

java.lang.Object
  extended byorg.apache.geronimo.j2ee.management.impl.JVMImpl

public class JVMImpl
extends Object

Version:
$Revision: 1.4 $ $Date: 2004/06/02 05:33:02 $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
static String JAVA_VENDOR
           
static String JAVA_VERSION
           
static String NODE
           
 
Constructor Summary
JVMImpl()
           
 
Method Summary
 int getavailableProcessors()
           
 long getfreeMemory()
           
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.
 long getmaxMemory()
           
 String getnode()
          The node we are running on.
 long gettotalMemory()
           
 
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()
Method Detail

getjavaVersion

public String getjavaVersion()
The version of the JVMImpl we are running on. This is the value of java.version system property

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

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

Returns:
the node we are running on
See Also:
"JSR77.3.4.1.3"

getfreeMemory

public long getfreeMemory()

getmaxMemory

public long getmaxMemory()

gettotalMemory

public long gettotalMemory()

getavailableProcessors

public int getavailableProcessors()

getGBeanInfo

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


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