|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.AbstractComponent
org.objectweb.dream.router.ChunkNameRouterImpl
A basic router implementation with two outputs :
outPushWithChunk
and outPushWithoutChunk
. The
first one is used if pushed messages contain a specified chunk name, the
secone one is used otherwise. The chunk name to test is specified as
attribute.
Warning : This router may not work correctly if it is used with
unextensible message implementations that simply return this
in the Message.getChunk(String)
method. In this case messages will
always be routed through the outPushWithChunk
output.
Field Summary | |
protected String |
chunkName
the chunk name to test |
static String |
OUTPUSH_WITH_CHUNK_ITF_NAME
The name of client interface used to push messages with the specified chunk name. |
static String |
OUTPUSH_WITHOUT_CHUNK_ITF_NAME
The name of client interface used to push messages without the specified chunk name. |
protected Push |
outPushWithChunkItf
The interface used to push messages with the specified chunk name. |
protected Push |
outPushWithoutChunkItf
The interface used to push messages without the specified chunk name. |
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 | |
ChunkNameRouterImpl()
|
Method Summary | |
void |
bindFc(String clientItfName,
Object serverItf)
|
String |
getChunkName()
Returns the chunk name used by chunk name routeur. |
String[] |
listFc()
|
void |
push(Message message,
Map context)
|
void |
setChunkName(String chunkName)
Sets the chunk name used by chunk name routeur. |
Methods inherited from class org.objectweb.dream.AbstractComponent |
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 |
public static final String OUTPUSH_WITH_CHUNK_ITF_NAME
public static final String OUTPUSH_WITHOUT_CHUNK_ITF_NAME
protected Push outPushWithChunkItf
protected Push outPushWithoutChunkItf
protected String chunkName
Constructor Detail |
public ChunkNameRouterImpl()
Method Detail |
public void push(Message message, Map context) throws PushException
push
in interface Push
PushException
Push.push(Message, Map)
public String getChunkName()
ChunkNameRouteurAttributeController
getChunkName
in interface ChunkNameRouteurAttributeController
ChunkNameRouteurAttributeController.getChunkName()
public void setChunkName(String chunkName)
ChunkNameRouteurAttributeController
setChunkName
in interface ChunkNameRouteurAttributeController
chunkName
- the chunk name used by chunk name routeur.ChunkNameRouteurAttributeController.setChunkName(String)
public String[] listFc()
listFc
in interface BindingController
BindingController.listFc()
public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
bindFc
in interface BindingController
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
BindingController.bindFc(String,
Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |