|
|||||||||
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.RouterChunkNameImpl
public class RouterChunkNameImpl
A basic router implementation with two outputs :
out-push-with-chunk
and out-push-without-chunk
.
The first one is used if pushed messages contain a specified chunk name, the
second one is used otherwise. The chunk name to check is specified as
attribute.
Field Summary | |
---|---|
protected String |
chunkName
the chunk name to test |
protected MessageManager |
messageManagerItf
|
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, 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 | |
---|---|
RouterChunkNameImpl()
|
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)
|
void |
setChunkName(String chunkName)
Sets the chunk name used by chunk name routeur. |
Methods inherited from class org.objectweb.dream.AbstractComponent |
---|
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, 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 MessageManager messageManagerItf
protected String chunkName
Constructor Detail |
---|
public RouterChunkNameImpl()
Method Detail |
---|
public void push(Message message) throws PushException
push
in interface Push
PushException
Push.push(Message)
public String getChunkName()
RouterChunkNameAttributeController
getChunkName
in interface RouterChunkNameAttributeController
RouterChunkNameAttributeController.getChunkName()
public void setChunkName(String chunkName)
RouterChunkNameAttributeController
setChunkName
in interface RouterChunkNameAttributeController
chunkName
- the chunk name used by chunk name routeur.RouterChunkNameAttributeController.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
bindFc
in class AbstractComponent
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
BindingController.bindFc(String,
Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |