org.objectweb.dream.router
Class RouterRoundRobinImpl

java.lang.Object
  extended byorg.objectweb.dream.AbstractComponent
      extended byorg.objectweb.dream.router.AbstractRouterImpl
          extended byorg.objectweb.dream.router.RouterRoundRobinImpl
All Implemented Interfaces:
BindingController, LifeCycleController, Loggable, Push

public class RouterRoundRobinImpl
extends AbstractRouterImpl

This router implements a round-robin choice of its outputs. Note that the defaultOutPushItf is only chosen if no route is bound to the router.


Field Summary
 
Fields inherited from class org.objectweb.dream.router.AbstractRouterImpl
DEFAULT_OUT_PUSH_ITF_NAME, defaultOutPushItf, initialized, messageManagerItf, outPushMap
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, componentDesc, fcState, firstStart, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.Push
IN_PUSH_ITF_NAME, OUT_PUSH_ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
RouterRoundRobinImpl()
           
 
Method Summary
protected  Push getOutput(Message message, Map context)
           
 
Methods inherited from class org.objectweb.dream.router.AbstractRouterImpl
bindFc, listFc, push, unbindFc
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, getFcState, initComponent, lookupFc, setLogger, startFc, stopFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouterRoundRobinImpl

public RouterRoundRobinImpl()
Method Detail

getOutput

protected Push getOutput(Message message,
                         Map context)
Specified by:
getOutput in class AbstractRouterImpl
See Also:
AbstractRouterImpl.getOutput(org.objectweb.dream.message.Message, java.util.Map)


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