org.objectweb.dream.control.activity.scheduler
Class ForwarderSchedulerImpl

java.lang.Object
  extended byorg.objectweb.dream.AbstractComponent
      extended byorg.objectweb.dream.control.activity.scheduler.ForwarderSchedulerImpl
All Implemented Interfaces:
BindingController, LifeCycleController, Loggable, Scheduler

public class ForwarderSchedulerImpl
extends AbstractComponent
implements Scheduler

Basic implementation of a forwarder scheduler. This scheduler is only bound to one upper-level that it executes. The schedule method only executes the upper-level task to which this scheduler is bound.


Field Summary
protected  Task task
          The task that is executed.
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, componentDesc, fcState, firstStart, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.control.activity.scheduler.Scheduler
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
ForwarderSchedulerImpl()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 String[] listFc()
           
 Object schedule(Object hints)
          Scheduling method.
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, getFcState, initComponent, lookupFc, setLogger, startFc, stopFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

task

protected Task task
The task that is executed.

Constructor Detail

ForwarderSchedulerImpl

public ForwarderSchedulerImpl()
Method Detail

schedule

public Object schedule(Object hints)
                throws InterruptedException,
                       StoppedSchedulerException
Description copied from interface: Scheduler
Scheduling method.

Specified by:
schedule in interface Scheduler
Parameters:
hints - scheduling parameters.
Returns:
An object that represents the scheduling result.
Throws:
StoppedSchedulerException - if the scheduler is stopped.
InterruptedException - if the scheduler has been interrupted while scheduling.
See Also:
Scheduler.schedule(Object)

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Specified by:
bindFc in interface BindingController
Overrides:
bindFc in class AbstractComponent
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
BindingController.bindFc(String, Object)

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController
See Also:
BindingController.listFc()


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.