org.objectweb.dream.router
Class RouterRoundRobinImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by org.objectweb.dream.router.AbstractRouterImpl
          extended by org.objectweb.dream.router.RouterRoundRobinImpl
All Implemented Interfaces:
ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, Push, BindingController, LifeCycleController

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, fcNeedAsyncStart, fcState, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.Push
IN_PUSH_ITF_NAME, INCOMING_IN_PUSH_ITF_NAME, INCOMING_OUT_PUSH_ITF_NAME, OUT_PUSH_ITF_NAME, OUTGOING_IN_PUSH_ITF_NAME, OUTGOING_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)
           
 
Methods inherited from class org.objectweb.dream.router.AbstractRouterImpl
bindFc, listFc, push, unbindFc
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, 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)
Specified by:
getOutput in class AbstractRouterImpl
See Also:
AbstractRouterImpl.getOutput(Message)


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