tigase.server.sreceiver.sysmon
Class LogMonitor

java.lang.Object
  extended by tigase.server.sreceiver.sysmon.AbstractMonitor
      extended by tigase.server.sreceiver.sysmon.LogMonitor
All Implemented Interfaces:
ResourceMonitorIfc

public class LogMonitor
extends AbstractMonitor

Created: Dec 12, 2008 8:31:38 PM

Version:
$Rev: 1486 $
Author:
Artur Hefczyc

Field Summary
 
Fields inherited from class tigase.server.sreceiver.sysmon.AbstractMonitor
treshold, warningsSent
 
Fields inherited from interface tigase.server.sreceiver.sysmon.ResourceMonitorIfc
INTERVAL_10SECS, INTERVAL_1DAY, INTERVAL_1HOUR, INTERVAL_1MIN, MINUTE, SECOND
 
Constructor Summary
LogMonitor()
           
 
Method Summary
 java.lang.String commandsHelp()
           
 void destroy()
           
 java.lang.String getState()
           
 void init(java.lang.String jid, double treshold, SystemMonitorTask smTask)
           
 boolean isMonitorCommand(java.lang.String com)
           
 java.lang.String runCommand(java.lang.String[] com)
           
 
Methods inherited from class tigase.server.sreceiver.sysmon.AbstractMonitor
check10Secs, check1Day, check1Hour, check1Min, prepareCalmDown, prepareWarning, resetWarnings, sendWarningOut, setValueInArr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogMonitor

public LogMonitor()
Method Detail

commandsHelp

public java.lang.String commandsHelp()
Specified by:
commandsHelp in interface ResourceMonitorIfc
Overrides:
commandsHelp in class AbstractMonitor

runCommand

public java.lang.String runCommand(java.lang.String[] com)
Specified by:
runCommand in interface ResourceMonitorIfc
Overrides:
runCommand in class AbstractMonitor

isMonitorCommand

public boolean isMonitorCommand(java.lang.String com)
Specified by:
isMonitorCommand in interface ResourceMonitorIfc
Overrides:
isMonitorCommand in class AbstractMonitor

init

public void init(java.lang.String jid,
                 double treshold,
                 SystemMonitorTask smTask)
Specified by:
init in interface ResourceMonitorIfc
Overrides:
init in class AbstractMonitor

destroy

public void destroy()

getState

public java.lang.String getState()


Copyright © 2009 Tigase. All Rights Reserved.