com.scalagent.scheduler
Class Scheduler

java.lang.Object
  extended by com.scalagent.scheduler.Scheduler
All Implemented Interfaces:
java.io.Serializable

public class Scheduler
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 class Scheduler.WakeUp
           
 
Field Summary
static org.objectweb.util.monolog.api.Logger logger
           
 
Constructor Summary
Scheduler(java.util.Timer timer)
          Creates the default scheduler.
 
Method Summary
 void restart(java.util.Timer timer)
          restart scheduler.
 void scheduleEvent(ScheduleEvent event, ScheduleTask task)
          schedule an event.
 java.lang.String toString()
          Provides a string image for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

public static org.objectweb.util.monolog.api.Logger logger
Constructor Detail

Scheduler

public Scheduler(java.util.Timer timer)
          throws java.io.IOException
Creates the default scheduler.

Parameters:
timer - a ScalAgent timer.
Throws:
java.io.IOException
Method Detail

restart

public void restart(java.util.Timer timer)
             throws java.lang.Exception
restart scheduler.

Parameters:
timer - a ScalAgent timer.
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Provides a string image for this object.

Overrides:
toString in class java.lang.Object
Returns:
a string image for this object

scheduleEvent

public void scheduleEvent(ScheduleEvent event,
                          ScheduleTask task)
                   throws java.lang.Exception
schedule an event. Calls insertItem. Calls checkItems.

Parameters:
event - event to schedule.
task - task to execute.
Throws:
java.lang.Exception


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.