org.objectweb.dream.channel
Class BasicTCPChannelOutImpl

java.lang.Object
  extended byorg.objectweb.dream.AbstractComponent
      extended byorg.objectweb.dream.channel.AbstractTCPChannelOutImpl
          extended byorg.objectweb.dream.channel.BasicTCPChannelOutImpl
All Implemented Interfaces:
AttributeController, BindingController, ChannelOutAttributeController, LifeCycleController, Loggable, MultiDestinationChannelOutAttributeController, Push
Direct Known Subclasses:
ReliableTCPChannelOutImpl

public class BasicTCPChannelOutImpl
extends AbstractTCPChannelOutImpl
implements MultiDestinationChannelOutAttributeController

Basic implementation of a ChannelOut component. TODO improve


Field Summary
protected  String chunkName
           
 
Fields inherited from class org.objectweb.dream.channel.AbstractTCPChannelOutImpl
cnxRetry, messageCodecItf, messageManagerItf
 
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
BasicTCPChannelOutImpl()
           
 
Method Summary
 String getDestinationChunkName()
          Returns the name of the IPChannelDestinationChunkchunk used by ChannelOut.
 void push(Message message, Map context)
           
protected  void receiveAck(Socket sock)
          Does not do anything.
 void setDestinationChunkName(String name)
          Sets the name of the IPChannelDestinationChunkchunk used by ChannelOut.
 
Methods inherited from class org.objectweb.dream.channel.AbstractTCPChannelOutImpl
bindFc, closeSocket, connectSocket, getConnectionRetry, listFc, setConnectionRetry, setSocketOption
 
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
 
Methods inherited from interface org.objectweb.dream.channel.ChannelOutAttributeController
getConnectionRetry, setConnectionRetry
 

Field Detail

chunkName

protected String chunkName
Constructor Detail

BasicTCPChannelOutImpl

public BasicTCPChannelOutImpl()
Method Detail

push

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

getDestinationChunkName

public String getDestinationChunkName()
Description copied from interface: MultiDestinationChannelOutAttributeController
Returns the name of the IPChannelDestinationChunkchunk used by ChannelOut.

Specified by:
getDestinationChunkName in interface MultiDestinationChannelOutAttributeController
Returns:
the name of the IPChannelDestinationChunkchunk used by ChannelOut.
See Also:
MultiDestinationChannelOutAttributeController.getDestinationChunkName()

setDestinationChunkName

public void setDestinationChunkName(String name)
Description copied from interface: MultiDestinationChannelOutAttributeController
Sets the name of the IPChannelDestinationChunkchunk used by ChannelOut.

Specified by:
setDestinationChunkName in interface MultiDestinationChannelOutAttributeController
Parameters:
name - the name of the IPChannelDestinationChunkchunk used by ChannelOut.
See Also:
MultiDestinationChannelOutAttributeController.setDestinationChunkName(String)

receiveAck

protected void receiveAck(Socket sock)
                   throws IOException
Does not do anything.

Parameters:
sock - the socket to be used.
Throws:
IOException - if an error occurs.


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