org.opensync.engine.server
Class TasksScheduler

java.lang.Object
  extended byorg.opensync.schedule.Scheduler
      extended byorg.opensync.engine.server.TasksScheduler
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class TasksScheduler
extends Scheduler

This object represents the task scheduler of the OpenSync application

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensync.schedule.Scheduler
httpPort, schedulerEntries, timeSchedulerEntries
 
Constructor Summary
TasksScheduler(int httpPort)
          Construct the TaskScheduler object
 
Method Summary
 void schedule(Agenda agenda, boolean hot)
          Schedule all tasks of the agenda
 void schedule(Agendas agendas, boolean hot)
          Schedule all tasks of all agenda
 void schedule(Task task, Schedule schedule, boolean hot)
          Schedule a task
 
Methods inherited from class org.opensync.schedule.Scheduler
addSchedulerEntry, execute, execute, main, run, setExitApp, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TasksScheduler

public TasksScheduler(int httpPort)
Construct the TaskScheduler object

Parameters:
httpPort - the http port used to execute task by http request
Method Detail

schedule

public void schedule(Agendas agendas,
                     boolean hot)
Schedule all tasks of all agenda

Parameters:
agendas - all agendas of the config file
hot - says if it is a hot start

schedule

public void schedule(Agenda agenda,
                     boolean hot)
Schedule all tasks of the agenda

Parameters:
agenda - the agenda to schedules
hot - says if it is a hot start

schedule

public void schedule(Task task,
                     Schedule schedule,
                     boolean hot)
Schedule a task

Parameters:
task - the task to schedule
schedule - the information for scheduling the task
hot - says if it is a hot start


Copyright © 2004 sourceforge. All Rights Reserved.