public class CPUMonitor extends AbstractMonitor
treshold, warningsSent
INTERVAL_10SECS, INTERVAL_1DAY, INTERVAL_1HOUR, INTERVAL_1MIN, MINUTE, SECOND
Constructor and Description |
---|
CPUMonitor() |
Modifier and Type | Method and Description |
---|---|
float |
calcCPUUse(long prevUptime,
long currUptime,
long prevCputime,
long currCputime,
int cpus) |
void |
check10Secs(Queue<Packet> results) |
String |
commandsHelp() |
void |
destroy() |
String |
getState() |
void |
getStatistics(StatisticsList list) |
void |
init(JID jid,
float treshold,
SystemMonitorTask smTask) |
boolean |
isMonitorCommand(String com) |
String |
runCommand(String[] com) |
check1Day, check1Hour, check1Min, prepareCalmDown, prepareWarning, resetWarnings, sendWarningOut, setValueInArr, setValueInArr
public String runCommand(String[] com)
runCommand
in interface ResourceMonitorIfc
runCommand
in class AbstractMonitor
public String commandsHelp()
commandsHelp
in interface ResourceMonitorIfc
commandsHelp
in class AbstractMonitor
public boolean isMonitorCommand(String com)
isMonitorCommand
in interface ResourceMonitorIfc
isMonitorCommand
in class AbstractMonitor
public void init(JID jid, float treshold, SystemMonitorTask smTask)
init
in interface ResourceMonitorIfc
init
in class AbstractMonitor
public void check10Secs(Queue<Packet> results)
check10Secs
in interface ResourceMonitorIfc
check10Secs
in class AbstractMonitor
public String getState()
public void destroy()
public void getStatistics(StatisticsList list)
getStatistics
in interface ResourceMonitorIfc
getStatistics
in class AbstractMonitor
public float calcCPUUse(long prevUptime, long currUptime, long prevCputime, long currCputime, int cpus)
Copyright © 2018 "Tigase, Inc.". All rights reserved.