
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 org.miloss.fgsms.common.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 org.miloss.fgsms.services.interfaces.policyconfiguration.MachineInformation |
gatherInformation()
Gathers the current machine information
|
org.miloss.fgsms.services.interfaces.common.SecurityWrapper |
getClasslevel() |
org.miloss.fgsms.services.interfaces.common.SecurityWrapper |
getClassLevelAsCopy() |
protected static List<org.miloss.fgsms.services.interfaces.common.DriveInformation> |
getDriveInfo() |
protected org.miloss.fgsms.services.interfaces.common.MachinePerformanceData |
getMachineInfo(org.miloss.fgsms.services.interfaces.policyconfiguration.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 org.miloss.fgsms.common.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 org.miloss.fgsms.services.interfaces.policyconfiguration.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 org.miloss.fgsms.services.interfaces.common.SecurityWrapper getClasslevel()
public org.miloss.fgsms.services.interfaces.common.SecurityWrapper getClassLevelAsCopy()
protected void fire()
throws org.miloss.fgsms.agentcore.ConfigurationException,
org.hyperic.sigar.SigarException,
DatatypeConfigurationException
org.miloss.fgsms.agentcore.ConfigurationExceptionorg.hyperic.sigar.SigarExceptionDatatypeConfigurationExceptionprotected static List<org.miloss.fgsms.services.interfaces.common.DriveInformation> getDriveInfo() throws org.hyperic.sigar.SigarException
org.hyperic.sigar.SigarExceptionprotected org.miloss.fgsms.services.interfaces.common.MachinePerformanceData getMachineInfo(org.miloss.fgsms.services.interfaces.policyconfiguration.MachinePolicy machine)
throws DatatypeConfigurationException,
org.hyperic.sigar.SigarException,
org.miloss.fgsms.agentcore.ConfigurationException
machine - DatatypeConfigurationExceptionorg.hyperic.sigar.SigarExceptionorg.miloss.fgsms.agentcore.ConfigurationExceptionprotected void startSensorFeeds()
Copyright © 2008–2017 MIL-OSS. All rights reserved.