org.inria.myriads.snoozenode.groupmanager.reconfiguration
Class ReconfigurationScheduler

java.lang.Object
  extended by org.inria.myriads.snoozenode.groupmanager.reconfiguration.ReconfigurationScheduler

public final class ReconfigurationScheduler
extends Object

Reconfigutation loop implementation based on the Quartz scheduler.

Author:
Eugen Feller

Constructor Summary
ReconfigurationScheduler(StateMachine stateMachine, String cronExpression)
          Constructor.
 
Method Summary
 void run()
          Start the reconfiguration loop.
 void shutdown()
          Shutdown the reconfiguration loop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconfigurationScheduler

public ReconfigurationScheduler(StateMachine stateMachine,
                                String cronExpression)
Constructor.

Parameters:
stateMachine - The group manager state machine
cronExpression - The cron expression
Method Detail

run

public void run()
         throws org.quartz.SchedulerException,
                ParseException
Start the reconfiguration loop.

Throws:
org.quartz.SchedulerException - The scheduler exception
ParseException - The parser exception

shutdown

public void shutdown()
              throws org.quartz.SchedulerException,
                     IOException
Shutdown the reconfiguration loop.

Throws:
org.quartz.SchedulerException - The scheduler exception
IOException - The I/O exception


Copyright © 2012. All Rights Reserved.