
public class OSAgent extends Object
ISensorProvider,
SensorProviderFactory| Modifier and Type | Class and Description |
|---|---|
class |
OSAgent.RunWhenShuttingDown |
| Modifier and Type | Field and Description |
|---|---|
protected int |
callback_port |
protected int |
currentportattempts |
long |
datasend_failures |
long |
datasend_success |
static Logger |
log |
protected int |
maxportattempts |
protected boolean |
running |
long |
startedat |
| Constructor and Description |
|---|
OSAgent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fire()
Fetches the most recent performance data, sends it to fgsms, then
performs some basic
|
protected static MachineInformation |
gatherInformation()
Gathers the current machine information
|
SecurityWrapper |
getClasslevel() |
SecurityWrapper |
getClassLevelAsCopy() |
protected static List<DriveInformation> |
getDriveInfo() |
protected MachinePerformanceData |
getMachineInfo(MachinePolicy machine)
Get machine information, such as current cpu, memory, disk, nic usage
|
protected static List<String> |
getServiceList(boolean isWindows)
Returns a list of running processes, if windows, the windows installed
service list is also included
|
static void |
main(String[] args) |
protected void |
startSensorFeeds() |
protected void |
startup(String[] args) |
public static final Logger log
protected boolean running
public long startedat
public long datasend_success
public long datasend_failures
protected int callback_port
protected int maxportattempts
protected int currentportattempts
public OSAgent()
throws DatatypeConfigurationException
DatatypeConfigurationExceptionpublic static void main(String[] args) throws Exception
args - the command line argumentsExceptionprotected static MachineInformation gatherInformation() throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionprotected static List<String> getServiceList(boolean isWindows) throws org.hyperic.sigar.SigarException
isWindows - org.hyperic.sigar.SigarExceptionpublic SecurityWrapper getClasslevel()
public SecurityWrapper getClassLevelAsCopy()
protected void fire()
throws ConfigurationException,
org.hyperic.sigar.SigarException,
DatatypeConfigurationException
ConfigurationExceptionorg.hyperic.sigar.SigarExceptionDatatypeConfigurationExceptionprotected static List<DriveInformation> getDriveInfo() throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionprotected MachinePerformanceData getMachineInfo(MachinePolicy machine) throws DatatypeConfigurationException, org.hyperic.sigar.SigarException, ConfigurationException
machine - DatatypeConfigurationExceptionorg.hyperic.sigar.SigarExceptionConfigurationExceptionprotected void startSensorFeeds()
Copyright © 2008–2017 MIL-OSS. All rights reserved.