org.rhq.core.system
Class SigarAccess
java.lang.Object
org.rhq.core.system.SigarAccess
public class SigarAccess
- extends Object
Provides synchronized Sigar access allowing you to obtain low-level platform details
and functionality.
Method Summary |
static void |
close()
|
static org.hyperic.sigar.SigarProxy |
getSigar()
Provides the caller with direct access to the Sigar native API via a proxy to Sigar. |
static boolean |
isSigarAvailable()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SigarAccess
public SigarAccess()
getSigar
public static org.hyperic.sigar.SigarProxy getSigar()
- Provides the caller with direct access to the Sigar native API via a proxy to Sigar.
This provides the caller with low-level access to platform functionality.
If the Sigar native layer is not available on the platform we are running on, or if
it has been disabled by the user, an exception will be thrown.
- Returns:
- the proxy used to access the native layer
- Throws:
SystemInfoException
- if native layer is unavailable or has been disabled
close
public static void close()
isSigarAvailable
public static boolean isSigarAvailable()
Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.