public abstract class AbstractMonitor extends Object implements ResourceMonitorIfc
| Modifier and Type | Field and Description |
|---|---|
protected float |
treshold |
protected Set<Object> |
warningsSent |
INTERVAL_10SECS, INTERVAL_1DAY, INTERVAL_1HOUR, INTERVAL_1MIN, MINUTE, SECOND| Constructor and Description |
|---|
AbstractMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
check10Secs(Queue<Packet> results) |
void |
check1Day(Queue<Packet> results) |
void |
check1Hour(Queue<Packet> results) |
void |
check1Min(Queue<Packet> results) |
String |
commandsHelp() |
void |
getStatistics(StatisticsList list) |
void |
init(tigase.xmpp.JID jid,
float treshold,
SystemMonitorTask smTask) |
boolean |
isMonitorCommand(String command) |
void |
prepareCalmDown(String text,
Queue<Packet> results,
Object warning) |
void |
prepareWarning(String text,
Queue<Packet> results,
Object warning) |
void |
resetWarnings() |
String |
runCommand(String[] command) |
void |
sendWarningOut(String text,
Object warning) |
int |
setValueInArr(double[] arr,
int idx,
double val) |
int |
setValueInArr(float[] arr,
int idx,
float val) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getStatepublic void init(tigase.xmpp.JID jid,
float treshold,
SystemMonitorTask smTask)
init in interface ResourceMonitorIfcpublic void resetWarnings()
public int setValueInArr(float[] arr,
int idx,
float val)
public int setValueInArr(double[] arr,
int idx,
double val)
public void check10Secs(Queue<Packet> results)
check10Secs in interface ResourceMonitorIfcpublic void check1Day(Queue<Packet> results)
check1Day in interface ResourceMonitorIfcpublic void check1Hour(Queue<Packet> results)
check1Hour in interface ResourceMonitorIfcpublic void check1Min(Queue<Packet> results)
check1Min in interface ResourceMonitorIfcpublic String commandsHelp()
commandsHelp in interface ResourceMonitorIfcpublic String runCommand(String[] command)
runCommand in interface ResourceMonitorIfcpublic boolean isMonitorCommand(String command)
isMonitorCommand in interface ResourceMonitorIfcpublic void getStatistics(StatisticsList list)
getStatistics in interface ResourceMonitorIfcCopyright © 2013 Tigase. All rights reserved.