org.quartz.locality.constraint.evaluator
Class EvaluatorTimerTask

java.lang.Object
  extended by java.util.TimerTask
      extended by org.quartz.locality.constraint.evaluator.EvaluatorTimerTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
CpuEvaluator, MemoryEvaluator

public abstract class EvaluatorTimerTask
extends TimerTask

An evaluator that performs monitoring on a regular basis

Author:
Alex Snaps

Nested Class Summary
static class EvaluatorTimerTask.Status
           
 
Constructor Summary
EvaluatorTimerTask()
           
 
Method Summary
 void cancelMonitoring()
          Permanently cancels the timer backing this instance.
static int getInterval()
           
 EvaluatorTimerTask.Status getStatus()
           
protected abstract  void monitor()
           
 void pauseMonitoring()
          Pauses the monitoring
 void resumeMonitoring()
          resumes the monitoring
 void run()
           
 void startMonitoring()
          Starts the monitoring
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluatorTimerTask

public EvaluatorTimerTask()
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

monitor

protected abstract void monitor()

startMonitoring

public void startMonitoring()
Starts the monitoring


pauseMonitoring

public void pauseMonitoring()
Pauses the monitoring


resumeMonitoring

public void resumeMonitoring()
resumes the monitoring


cancelMonitoring

public void cancelMonitoring()
Permanently cancels the timer backing this instance.


getStatus

public EvaluatorTimerTask.Status getStatus()

getInterval

public static int getInterval()


Copyright 2001-2013, Terracotta, Inc.