edu.ntnu.cikmr.scheduling
Class Scheduler

java.lang.Object
  extended by edu.ntnu.cikmr.services.AbstractService
      extended by edu.ntnu.cikmr.scheduling.Scheduler
All Implemented Interfaces:
Service

public class Scheduler
extends AbstractService


Constructor Summary
Scheduler()
           
 
Method Summary
 void addSchedulerListener(SchedulerListener l)
           
 Workflow addWorkflow(java.lang.String xmlDefinition)
           
 Workflow getWorkflow(int index)
           
 Workflow getWorkflow(java.lang.String id)
           
 PeerWorkflowContainer getWorkflowContainer()
           
 int getWorkflowCount()
           
 void init(ServiceManager manager)
           
 boolean isStarted()
           
 void removeSchedulerListener(SchedulerListener l)
           
 boolean removeWorkflow(Workflow workflow)
           
 void start(PeerGroup peerGroup)
           
 void stop()
           
 
Methods inherited from class edu.ntnu.cikmr.services.AbstractService
addServiceListener, fireServiceStarted, fireServiceStopped, removeServiceListner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scheduler

public Scheduler()
Method Detail

addWorkflow

public Workflow addWorkflow(java.lang.String xmlDefinition)

removeWorkflow

public boolean removeWorkflow(Workflow workflow)

getWorkflow

public Workflow getWorkflow(int index)

getWorkflow

public Workflow getWorkflow(java.lang.String id)

getWorkflowCount

public int getWorkflowCount()

addSchedulerListener

public void addSchedulerListener(SchedulerListener l)

removeSchedulerListener

public void removeSchedulerListener(SchedulerListener l)

init

public void init(ServiceManager manager)

start

public void start(PeerGroup peerGroup)
           throws java.io.IOException
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
Throws:
java.io.IOException

isStarted

public boolean isStarted()

getWorkflowContainer

public PeerWorkflowContainer getWorkflowContainer()