org.objectweb.dream.channel
Class IPChannelDestinationChunkImpl

java.lang.Object
  extended byorg.objectweb.dream.message.AbstractChunk
      extended byorg.objectweb.dream.channel.IPChannelDestinationChunkImpl
All Implemented Interfaces:
Chunk, Cloneable, Externalizable, IPChannelDestinationChunk, Recyclable, Serializable

public class IPChannelDestinationChunkImpl
extends AbstractChunk
implements IPChannelDestinationChunk, Externalizable

Basic Implementation of IPChannelDestinationChunk

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.objectweb.dream.channel.IPChannelDestinationChunk
DEFAULT_NAME, TYPE
 
Constructor Summary
IPChannelDestinationChunkImpl()
           
 
Method Summary
 InetAddress getChannelDestinationAddr()
          Returns the inet address of the ChannelIn.
 int getChannelDestinationPort()
          Returns the listening port of the ChannelIn.
 ChunkType getType()
           
 void readExternal(ObjectInput in)
           
 void recycle()
           
 void setChannelDestinationAddr(InetAddress addr)
          Sets the inet address of the ChannelIn.
 void setChannelDestinationPort(int port)
          Sets the listening port of the ChannelIn.
 String toString()
           
 void transfertState(Chunk newInstance)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.objectweb.dream.message.AbstractChunk
getMessageManagerId, setMessageManagerId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IPChannelDestinationChunkImpl

public IPChannelDestinationChunkImpl()
Method Detail

getChannelDestinationAddr

public InetAddress getChannelDestinationAddr()
Description copied from interface: IPChannelDestinationChunk
Returns the inet address of the ChannelIn.

Specified by:
getChannelDestinationAddr in interface IPChannelDestinationChunk
Returns:
the inet address of the ChannelIn.
See Also:
IPChannelDestinationChunk.getChannelDestinationAddr()

setChannelDestinationAddr

public void setChannelDestinationAddr(InetAddress addr)
Description copied from interface: IPChannelDestinationChunk
Sets the inet address of the ChannelIn.

Specified by:
setChannelDestinationAddr in interface IPChannelDestinationChunk
Parameters:
addr - the inet address.
See Also:
IPChannelDestinationChunk.setChannelDestinationAddr(InetAddress)

getChannelDestinationPort

public int getChannelDestinationPort()
Description copied from interface: IPChannelDestinationChunk
Returns the listening port of the ChannelIn.

Specified by:
getChannelDestinationPort in interface IPChannelDestinationChunk
Returns:
the listening port of the ChannelIn.
See Also:
IPChannelDestinationChunk.getChannelDestinationPort()

setChannelDestinationPort

public void setChannelDestinationPort(int port)
Description copied from interface: IPChannelDestinationChunk
Sets the listening port of the ChannelIn.

Specified by:
setChannelDestinationPort in interface IPChannelDestinationChunk
Parameters:
port - the listening port
See Also:
IPChannelDestinationChunk.setChannelDestinationPort(int)

getType

public ChunkType getType()
Specified by:
getType in interface Chunk
See Also:
Chunk.getType()

recycle

public void recycle()
Specified by:
recycle in interface Recyclable
See Also:
Recyclable.recycle()

transfertState

public void transfertState(Chunk newInstance)
Specified by:
transfertState in interface Chunk
See Also:
Chunk.transfertState(Chunk)

toString

public String toString()
See Also:
Object.toString()

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException
See Also:
Externalizable.readExternal(ObjectInput)

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException
See Also:
Externalizable.writeExternal(ObjectOutput)


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