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(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, wait
destroy, getState
public void init(JID jid, float treshold, SystemMonitorTask smTask)
init
in interface ResourceMonitorIfc
public 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 ResourceMonitorIfc
public void check1Day(Queue<Packet> results)
check1Day
in interface ResourceMonitorIfc
public void check1Hour(Queue<Packet> results)
check1Hour
in interface ResourceMonitorIfc
public void check1Min(Queue<Packet> results)
check1Min
in interface ResourceMonitorIfc
public String commandsHelp()
commandsHelp
in interface ResourceMonitorIfc
public String runCommand(String[] command)
runCommand
in interface ResourceMonitorIfc
public boolean isMonitorCommand(String command)
isMonitorCommand
in interface ResourceMonitorIfc
public void getStatistics(StatisticsList list)
getStatistics
in interface ResourceMonitorIfc
Copyright © 2018 "Tigase, Inc.". All rights reserved.