org.objectweb.dream.channel
Class AddIPExportIdChunkImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by org.objectweb.dream.channel.AddIPExportIdChunkImpl
All Implemented Interfaces:
AddIPExportIdChunkAttributeController, ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, Push, AttributeController, BindingController, LifeCycleController

public class AddIPExportIdChunkImpl
extends AbstractComponent
implements Push, AddIPExportIdChunkAttributeController

This message transformer adds a ExportIdentifierChunk containing an IPExportIdentifier.
The name of the added chunk is specified using AddIPExportIdChunkAttributeController.setChunkName(String).
The inet address must be specified using the AddIPExportIdChunkAttributeController.setHostname(String) method.


Field Summary
protected  String chunkName
           
protected  ChunkFactoryReference<ExportIdentifierChunk> exportIdChunkFactory
           
protected  IPExportIdentifier exportIdentifier
           
protected  String hostname
           
protected  MessageManager messageManagerItf
           
protected  Push outPushItf
           
protected  int port
           
 
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
AddIPExportIdChunkImpl()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 String getChunkName()
          Returns the name of added chunks.
 String getHostname()
          Returns the hostname put in chunks.
 int getPort()
          Returns the port number put in chunks.
 String[] listFc()
           
 void push(Message message)
           
 void setChunkName(String chunkName)
          Sets the name of the added chunk.
 void setHostname(String hostname)
          Sets the hostname put in chunks.
 void setPort(int port)
          Sets the port number put in chunks.
 
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

exportIdentifier

protected IPExportIdentifier exportIdentifier

exportIdChunkFactory

protected ChunkFactoryReference<ExportIdentifierChunk> exportIdChunkFactory

chunkName

protected String chunkName

hostname

protected String hostname

port

protected int port

outPushItf

protected Push outPushItf

messageManagerItf

protected MessageManager messageManagerItf
Constructor Detail

AddIPExportIdChunkImpl

public AddIPExportIdChunkImpl()
Method Detail

push

public void push(Message message)
          throws PushException
Specified by:
push in interface Push
Throws:
PushException
See Also:
Push.push(Message)

getChunkName

public String getChunkName()
Description copied from interface: AddIPExportIdChunkAttributeController
Returns the name of added chunks.

Specified by:
getChunkName in interface AddIPExportIdChunkAttributeController
Returns:
the name of added chunks.
See Also:
AddIPExportIdChunkAttributeController.getChunkName()

setChunkName

public void setChunkName(String chunkName)
Description copied from interface: AddIPExportIdChunkAttributeController
Sets the name of the added chunk.

Specified by:
setChunkName in interface AddIPExportIdChunkAttributeController
Parameters:
chunkName - the name of added chunks .
See Also:
AddIPExportIdChunkAttributeController.setChunkName(String)

getHostname

public String getHostname()
Description copied from interface: AddIPExportIdChunkAttributeController
Returns the hostname put in chunks.

Specified by:
getHostname in interface AddIPExportIdChunkAttributeController
Returns:
a string representation of the hostname put in chunks.
See Also:
AddIPExportIdChunkAttributeController.getHostname()

setHostname

public void setHostname(String hostname)
Description copied from interface: AddIPExportIdChunkAttributeController
Sets the hostname put in chunks.

Specified by:
setHostname in interface AddIPExportIdChunkAttributeController
Parameters:
hostname - the hostname put in chunks.
See Also:
AddIPExportIdChunkAttributeController.setHostname(String)

getPort

public int getPort()
Description copied from interface: AddIPExportIdChunkAttributeController
Returns the port number put in chunks.

Specified by:
getPort in interface AddIPExportIdChunkAttributeController
Returns:
the port number put in chunks.
See Also:
AddIPExportIdChunkAttributeController.getPort()

setPort

public void setPort(int port)
Description copied from interface: AddIPExportIdChunkAttributeController
Sets the port number put in chunks.

Specified by:
setPort in interface AddIPExportIdChunkAttributeController
Parameters:
port - the port number put in chunks.
See Also:
AddIPExportIdChunkAttributeController.setPort(int)

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController
See Also:
BindingController.listFc()

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Specified by:
bindFc in interface BindingController
Overrides:
bindFc in class AbstractComponent
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
BindingController.bindFc(String, Object)


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