org.objectweb.dream.protocol.utobcast.message
Class UPDChunkImpl

java.lang.Object
  extended byorg.objectweb.dream.message.AbstractChunk
      extended byorg.objectweb.dream.protocol.utobcast.message.UPDChunkImpl
All Implemented Interfaces:
Chunk, Cloneable, Recyclable, Serializable, UPDChunk

public class UPDChunkImpl
extends AbstractChunk
implements UPDChunk

Basic implementation of the UPDChunkinterface.

See Also:
Serialized Form

Field Summary
protected  Process[] processes
          The process array.
protected  long sn
          The sequence number of this message.
 
Fields inherited from interface org.objectweb.dream.protocol.utobcast.message.UPDChunk
DEFAULT_NAME, TYPE
 
Constructor Summary
UPDChunkImpl()
           
 
Method Summary
 Process[] getProcesses()
          Returns the process array that is exchanged between the leader and the backup.
 long getSequenceNumber()
          Returns the sequence number that is exchanged between the leader and the backup.
 ChunkType getType()
           
 void recycle()
           
 void setProcesses(Process[] processes)
          Sets the process array that is exchanged between the leader and the backup.
 void setSequenceNumber(long sn)
          Sets the sequence number that is exchanged between the leader and the backup.
 void transfertState(Chunk newInstance)
           
 
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
 

Field Detail

processes

protected Process[] processes
The process array.


sn

protected long sn
The sequence number of this message.

Constructor Detail

UPDChunkImpl

public UPDChunkImpl()
Method Detail

setSequenceNumber

public void setSequenceNumber(long sn)
Description copied from interface: UPDChunk
Sets the sequence number that is exchanged between the leader and the backup.

Specified by:
setSequenceNumber in interface UPDChunk
Parameters:
sn - the sequence number to be set.
See Also:
UPDChunk.setSequenceNumber(long)

getSequenceNumber

public long getSequenceNumber()
Description copied from interface: UPDChunk
Returns the sequence number that is exchanged between the leader and the backup.

Specified by:
getSequenceNumber in interface UPDChunk
Returns:
the sequence number.
See Also:
UPDChunk.getSequenceNumber()

getProcesses

public Process[] getProcesses()
Description copied from interface: UPDChunk
Returns the process array that is exchanged between the leader and the backup.

Specified by:
getProcesses in interface UPDChunk
Returns:
a process array.
See Also:
UPDChunk.getProcesses()

setProcesses

public void setProcesses(Process[] processes)
Description copied from interface: UPDChunk
Sets the process array that is exchanged between the leader and the backup.

Specified by:
setProcesses in interface UPDChunk
Parameters:
processes - the process array to be set.
See Also:
UPDChunk.setProcesses(org.objectweb.dream.protocol.Process[])

getType

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

transfertState

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

recycle

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


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