|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsysteminformationmonitor.system.sigar.SigarHolder
public class SigarHolder
SigarHold is a container class for Sigar Proxy and Sigar. It contains a single
instance of Sigar and Sigar Proxy. This class should be used to reference
any sigar related api call to ensure thread safety.
| Field Summary | |
|---|---|
int |
LONG_SLEEP_TIME
|
int |
NORMAL_SLEEP_TIME
|
int |
SHORT_SLEEP_TIME
|
| Method Summary | |
|---|---|
static void |
clearCache()
Purge all data stored inside the Sigar instance, this will force Sigar Proxy to reload. |
static org.hyperic.sigar.SigarProxy |
getInstance()
Return an instance of Sigar Proxy. |
static org.hyperic.sigar.Sigar |
getNonCachedInstance()
Return an instance of Sigar, this instance is not cached and it is not thread safe. |
static void |
setSleepTime(int sleepTime)
Set amount of time the Sigar proxy should reload it self. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int SHORT_SLEEP_TIME
public final int NORMAL_SLEEP_TIME
public final int LONG_SLEEP_TIME
| Method Detail |
|---|
public static org.hyperic.sigar.SigarProxy getInstance()
public static org.hyperic.sigar.Sigar getNonCachedInstance()
public static void clearCache()
public static void setSleepTime(int sleepTime)
sleepTime - time until reload.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||