systeminformationmonitor.system
Class Uptime

java.lang.Object
  extended by java.lang.Thread
      extended by systeminformationmonitor.system.AbstractSystemUpdater
          extended by systeminformationmonitor.system.Uptime
All Implemented Interfaces:
java.lang.Runnable

public class Uptime
extends AbstractSystemUpdater

Uptime class generates program and system uptime.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class systeminformationmonitor.system.AbstractSystemUpdater
sigar, threadLock
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Uptime()
           
 
Method Summary
 void prepare()
          Prepare the system related resource
 void update()
          Update the UI
 
Methods inherited from class systeminformationmonitor.system.AbstractSystemUpdater
done, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Uptime

public Uptime()
Method Detail

prepare

public void prepare()
Description copied from class: AbstractSystemUpdater
Prepare the system related resource

Overrides:
prepare in class AbstractSystemUpdater

update

public void update()
Description copied from class: AbstractSystemUpdater
Update the UI

Specified by:
update in class AbstractSystemUpdater