org.objectweb.dream.router
Class RouterRandomImpl

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

public class RouterRandomImpl
extends AbstractRouterImpl

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.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
RouterRandomImpl()
           
 
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

RouterRandomImpl

public RouterRandomImpl()
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.