org.objectweb.dream.protocol
Class ArrowChunkImpl

java.lang.Object
  extended byorg.objectweb.dream.message.AbstractChunk
      extended byorg.objectweb.dream.protocol.ArrowChunkImpl
All Implemented Interfaces:
ArrowChunk, Chunk, Cloneable, Externalizable, Recyclable, Serializable

public class ArrowChunkImpl
extends AbstractChunk
implements ArrowChunk, Chunk, Externalizable

A basic Chunk interface that defines an arrow from a source process to a destination process.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.objectweb.dream.protocol.ArrowChunk
DEFAULT_NAME, TYPE
 
Constructor Summary
ArrowChunkImpl()
           
 
Method Summary
 short getProcessIdFrom()
          Returns the identifier of the sender process.
 short getProcessIdTo()
          Returns the identifier of the receiver process.
 ChunkType getType()
           
 void readExternal(ObjectInput in)
           
 void recycle()
           
 void setProcessIdFrom(short from)
          Sets the identifier of the sender process.
 void setProcessIdTo(short to)
          Sets the identifier of the receiver process.
 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, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.dream.message.Chunk
getMessageManagerId, setMessageManagerId
 

Constructor Detail

ArrowChunkImpl

public ArrowChunkImpl()
Method Detail

getProcessIdFrom

public short getProcessIdFrom()
Description copied from interface: ArrowChunk
Returns the identifier of the sender process.

Specified by:
getProcessIdFrom in interface ArrowChunk
Returns:
the identifier of the sender process.
See Also:
ArrowChunk.getProcessIdFrom()

setProcessIdFrom

public void setProcessIdFrom(short from)
Description copied from interface: ArrowChunk
Sets the identifier of the sender process.

Specified by:
setProcessIdFrom in interface ArrowChunk
Parameters:
from - the identifier of the sender process.
See Also:
ArrowChunk.setProcessIdFrom(short)

getProcessIdTo

public short getProcessIdTo()
Description copied from interface: ArrowChunk
Returns the identifier of the receiver process.

Specified by:
getProcessIdTo in interface ArrowChunk
Returns:
the identifier of the receiver process.
See Also:
ArrowChunk.getProcessIdTo()

setProcessIdTo

public void setProcessIdTo(short to)
Description copied from interface: ArrowChunk
Sets the identifier of the receiver process.

Specified by:
setProcessIdTo in interface ArrowChunk
Parameters:
to - the identifier of the receiver process.
See Also:
ArrowChunk.setProcessIdTo(short)

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)

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.