tigase.server.sreceiver.sysmon
Class MemMonitor

java.lang.Object
  extended by tigase.server.sreceiver.sysmon.AbstractMonitor
      extended by tigase.server.sreceiver.sysmon.MemMonitor
All Implemented Interfaces:
java.util.EventListener, javax.management.NotificationListener, ResourceMonitorIfc

public class MemMonitor
extends AbstractMonitor
implements javax.management.NotificationListener

Created: Dec 10, 2008 1:23:17 PM

Version:
$Rev: 1423 $
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
MemMonitor()
           
 
Method Summary
 void destroy()
           
 java.lang.String getState()
           
 void handleNotification(javax.management.Notification note, java.lang.Object handback)
           
 void init(java.lang.String jid, double treshold, SystemMonitorTask smTask)
           
 
Methods inherited from class tigase.server.sreceiver.sysmon.AbstractMonitor
check10Secs, check1Day, check1Hour, check1Min, commandsHelp, isMonitorCommand, prepareCalmDown, prepareWarning, resetWarnings, runCommand, sendWarningOut, setValueInArr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemMonitor

public MemMonitor()
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface ResourceMonitorIfc

init

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

handleNotification

public void handleNotification(javax.management.Notification note,
                               java.lang.Object handback)
Specified by:
handleNotification in interface javax.management.NotificationListener

getState

public java.lang.String getState()
Specified by:
getState in interface ResourceMonitorIfc


Copyright © 2009 Tigase. All Rights Reserved.