|
||||||||||
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.PushPushDreamComponent
org.objectweb.dream.channel.AddIPChannelDestinationChunkImpl
This message transformer adds a IPChannelDestinationChunk
containing
the inet address and the listenning port of a channel.
The name of the added chunk is by default
IPChannelDestinationChunk.DEFAULT_NAME
, it can be changed using
AddIPChannelAttributeController.setChunkName(String)
.
The inet address can be specified using the
AddIPChannelAttributeController.setInetAddress(String)
method. If
not specified, the local address is used.
Field Summary | |
protected String |
chunkName
the name of the IPChannelDestinationChunk added by this
transformer. |
protected InetAddress |
inetAddress
the inet address set in the chunk. |
protected MessageManager |
messageManagerItf
the message manager client interface of this component. |
protected int |
port
the port set in the chunk. |
Fields inherited from class org.objectweb.dream.PushPushDreamComponent |
outPushItf |
Fields inherited from class org.objectweb.dream.AbstractComponent |
bindingLogger, componentDesc, fcState, firstStart, 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 | |
AddIPChannelDestinationChunkImpl()
|
Method Summary | |
void |
bindFc(String clientItfName,
Object serverItf)
|
String |
getChunkName()
Returns the name of added chunks. |
String |
getInetAddress()
Returns the inet addresse put in chunks. |
int |
getPort()
Returns the port number put in chunks. |
String[] |
listFc()
|
void |
push(Message message,
Map context)
|
void |
setChunkName(String chunkName)
Sets the name of the added chunk. |
void |
setInetAddress(String inetAddress)
Sets the inet addresse put in chunks. |
void |
setPort(int port)
Sets the port number put in chunks. |
void |
startFc()
|
Methods inherited from class org.objectweb.dream.AbstractComponent |
beforeFirstStart, getFcState, initComponent, lookupFc, setLogger, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected MessageManager messageManagerItf
protected String chunkName
IPChannelDestinationChunk
added by this
transformer.
protected InetAddress inetAddress
protected int port
Constructor Detail |
public AddIPChannelDestinationChunkImpl()
Method Detail |
public void push(Message message, Map context) throws PushException
push
in interface Push
PushException
Push.push(Message, Map)
public String getChunkName()
AddIPChannelAttributeController
getChunkName
in interface AddIPChannelAttributeController
AddIPChannelAttributeController.getChunkName()
public void setChunkName(String chunkName)
AddIPChannelAttributeController
setChunkName
in interface AddIPChannelAttributeController
chunkName
- the name of added chunks .AddIPChannelAttributeController.setChunkName(String)
public String getInetAddress()
AddIPChannelAttributeController
getInetAddress
in interface AddIPChannelAttributeController
AddIPChannelAttributeController.getInetAddress()
public void setInetAddress(String inetAddress) throws UnknownHostException
AddIPChannelAttributeController
setInetAddress
in interface AddIPChannelAttributeController
inetAddress
- a String representing the inet addresse put in chunks.
UnknownHostException
- if the given inet address can't be resolvedAddIPChannelAttributeController.setInetAddress(String)
public int getPort()
AddIPChannelAttributeController
getPort
in interface AddIPChannelAttributeController
AddIPChannelAttributeController.getPort()
public void setPort(int port)
AddIPChannelAttributeController
setPort
in interface AddIPChannelAttributeController
port
- the port number put in chunks.AddIPChannelAttributeController.setPort(int)
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)
public void startFc() throws IllegalLifeCycleException
startFc
in interface LifeCycleController
IllegalLifeCycleException
LifeCycleController.startFc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |