systeminformationmonitor.system
Class SystemInformationGather

java.lang.Object
  extended by systeminformationmonitor.system.SystemInformationGather
All Implemented Interfaces:
java.lang.Runnable

public class SystemInformationGather
extends java.lang.Object
implements java.lang.Runnable

SystemInformationGather class mangages all system information classes. It contains two thread pool which does periodic pulling and push of information.


Method Summary
static int getCounter()
          Getter method for the update counter
static SystemInformationGather getInstance()
           
static long getLoadTime()
          Getter method for update load time
static long getRefreshTime()
           
 void refresh()
          For the gather to make a global pull and then push update.
 void run()
          This method will cause the SystemInformation gather to refresh at a periodic rate.
 void setTime(int time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SystemInformationGather getInstance()

refresh

public void refresh()
For the gather to make a global pull and then push update.


getCounter

public static int getCounter()
Getter method for the update counter

Returns:
number of update counted

getLoadTime

public static long getLoadTime()
Getter method for update load time

Returns:
the amout of time takes to do one full update

getRefreshTime

public static long getRefreshTime()

run

public void run()
This method will cause the SystemInformation gather to refresh at a periodic rate.

Specified by:
run in interface java.lang.Runnable

setTime

public void setTime(int time)