use of org.hyperic.sigar.jmx.SigarLoadAverage in project ats-framework by Axway.
the class SigarWrapper method refresh.
/**
* called on each poll
*
* @throws SigarException
* @throws MonitorConfigurationException
*/
void refresh() throws SigarException, MonitorConfigurationException {
try {
this.swap = this.sigar.getSwap();
this.memory = this.sigar.getMem();
this.cpu = this.sigar.getCpu();
this.cpuPerc = this.sigar.getCpuPerc();
if (!OperatingSystemType.getCurrentOsType().equals(OperatingSystemType.AIX)) {
this.netstat = this.sigar.getNetStat();
this.tcp = this.sigar.getTcp();
}
this.loadAvrg = new SigarLoadAverage(this.sigar);
} catch (Exception e) {
final String errorMsg = "Error retrieving data from the Sigar monitoring system";
log.error(errorMsg, e);
throw new MonitorConfigurationException(errorMsg, e);
}
}
Aggregations