Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jcorporate.expresso.core.utility
Class SystemInfo  view SystemInfo download SystemInfo.java

java.lang.Object
  extended bycom.jcorporate.expresso.core.utility.SystemInfo

public class SystemInfo
extends java.lang.Object

System information utility class


Field Summary
private static java.lang.Runtime m_runtime
          The Runtime system
 
Constructor Summary
SystemInfo()
           
 
Method Summary
static int getFreeMem()
          Retrieve the amount of free memory in Kilobytes
static java.lang.String getHostName()
          Get the host name.
static int getLoadAverage()
          Not implemented
static java.lang.String getOSClass()
          Retrieves either windows or unix depending on the os name
static java.lang.String getOSName()
          Returns the operating system name as defined by the "os.name" system property
static double getPowerFactor()
           
static int getTotalMem()
          Retrieve the total system memory in kilobytes
static int getUsedMem()
          Get the used memory in bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_runtime

private static java.lang.Runtime m_runtime
The Runtime system

Constructor Detail

SystemInfo

public SystemInfo()
Method Detail

getTotalMem

public static int getTotalMem()
Retrieve the total system memory in kilobytes


getUsedMem

public static int getUsedMem()
Get the used memory in bytes


getFreeMem

public static int getFreeMem()
Retrieve the amount of free memory in Kilobytes


getLoadAverage

public static int getLoadAverage()
Not implemented


getPowerFactor

public static double getPowerFactor()

getHostName

public static java.lang.String getHostName()
Get the host name. Returns unknown if it cannot ascertain the localhost host name


getOSName

public static java.lang.String getOSName()
Returns the operating system name as defined by the "os.name" system property


getOSClass

public static java.lang.String getOSClass()
Retrieves either windows or unix depending on the os name