org.objectweb.dream.router
Class RandomRouterImpl

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

public class RandomRouterImpl
extends AbstractBasicRouterImpl

This router randomly chooses one of its outputs. Note that defaultOutPushItf is only chosen if no route is bound to the router.


Field Summary
 
Fields inherited from class org.objectweb.dream.router.AbstractBasicRouterImpl
DEFAULT_OUT_PUSH_ITF_NAME, defaultOutPushItf, initialized, messageManagerItf, outPushMap
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, componentDesc, fcState, 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
RandomRouterImpl()
           
 
Method Summary
protected  Push getOutput(Message message, Map context)
           
 
Methods inherited from class org.objectweb.dream.router.AbstractBasicRouterImpl
bindFc, listFc, push, unbindFc
 
Methods inherited from class org.objectweb.dream.AbstractComponent
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

RandomRouterImpl

public RandomRouterImpl()
Method Detail

getOutput

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


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