public class CPUMonitor extends AbstractMonitor
treshold, warningsSentINTERVAL_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(tigase.xmpp.JID jid,
float treshold,
SystemMonitorTask smTask) |
boolean |
isMonitorCommand(String com) |
String |
runCommand(String[] com) |
check1Day, check1Hour, check1Min, prepareCalmDown, prepareWarning, resetWarnings, sendWarningOut, setValueInArr, setValueInArrpublic String runCommand(String[] com)
runCommand in interface ResourceMonitorIfcrunCommand in class AbstractMonitorpublic String commandsHelp()
commandsHelp in interface ResourceMonitorIfccommandsHelp in class AbstractMonitorpublic boolean isMonitorCommand(String com)
isMonitorCommand in interface ResourceMonitorIfcisMonitorCommand in class AbstractMonitorpublic void init(tigase.xmpp.JID jid,
float treshold,
SystemMonitorTask smTask)
init in interface ResourceMonitorIfcinit in class AbstractMonitorpublic void check10Secs(Queue<Packet> results)
check10Secs in interface ResourceMonitorIfccheck10Secs in class AbstractMonitorpublic String getState()
public void destroy()
public void getStatistics(StatisticsList list)
getStatistics in interface ResourceMonitorIfcgetStatistics in class AbstractMonitorpublic float calcCPUUse(long prevUptime,
long currUptime,
long prevCputime,
long currCputime,
int cpus)
Copyright © 2014 "Tigase, Inc.". All rights reserved.