Expresso 5-6

com.jcorporate.expresso.core.utility
Class SystemInfo

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

public class SystemInfo
extends Object

System information utility class


Constructor Summary
SystemInfo()
           
 
Method Summary
static int getFreeMem()
          Retrieve the amount of free memory in Kilobytes
static String getHostName()
          Get the host name.
static int getLoadAverage()
          Not implemented
static String getOSClass()
          Retrieves either windows or unix depending on the os name
static 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
 

Constructor Detail

SystemInfo

public SystemInfo()
Method Detail

getTotalMem

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

Returns:
integer

getUsedMem

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

Returns:
integer

getFreeMem

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

Returns:
integer

getLoadAverage

public static int getLoadAverage()
Not implemented

Returns:

getPowerFactor

public static double getPowerFactor()

getHostName

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

Returns:
java.lang.String

getOSName

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

Returns:
java.lang.String

getOSClass

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

Returns:
java.lang.String either MSWIN or Unix

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.