com.scalagent.scheduler
Class Scheduler
java.lang.Object
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
Field Summary |
static org.objectweb.util.monolog.api.Logger |
logger
|
Constructor Summary |
Scheduler(java.util.Timer timer)
Creates the default scheduler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
public static org.objectweb.util.monolog.api.Logger logger
Scheduler
public Scheduler(java.util.Timer timer)
throws java.io.IOException
- Creates the default scheduler.
- Parameters:
timer
- a ScalAgent timer.
- Throws:
java.io.IOException
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.