ostore.tapestry.impl
Class DynamicObjMapMsg

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--ostore.util.NonceAckMsg
              |
              +--ostore.util.NonceMsg
                    |
                    +--ostore.tapestry.impl.DynamicObjMapMsg
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable

public class DynamicObjMapMsg
extends NonceMsg
implements QuickSerializable


Field Summary
static int DELETION
           
static int DELETION_NACK
           
static int DELETIONACK
           
 HashSet ignoreNodes
          if type == DELETIONACK or DELETION_NACK, then this is the list of nodes we've already looked at, and are all leaving
static int INSERTION
           
 NodeId nextSurrogate
          if type == DELETION_NACK, this is the next suggested surrogate node
 int objcount
           
 SecureHash objguid
           
 LinkedList pinfo
           
 int seq
           
 NodeId src
           
 int type
           
 
Fields inherited from class ostore.util.NonceAckMsg
stage_id
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, inbound, peer, sender, tries, user_data
 
Constructor Summary
DynamicObjMapMsg(InputBuffer buffer)
           
DynamicObjMapMsg(NodeId peer, NodeId src, SecureHash objguid, LinkedList pinfo, int objcount, int seq)
           
DynamicObjMapMsg(NodeId peer, NodeId src, SecureHash objguid, LinkedList pinfo, int objcount, int seq, int type)
           
 
Method Summary
 void addIgnoreNodes(HashSet toIgnore)
           
 void addNextSurrogate(NodeId next)
           
 Object clone()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class ostore.util.NonceMsg
getNonce, setNonce
 
Methods inherited from class ostore.util.NonceAckMsg
addNonceAck, getNonceAcks, getStageId, setStageId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

src

public NodeId src

objguid

public SecureHash objguid

pinfo

public LinkedList pinfo

objcount

public int objcount

seq

public int seq

type

public int type

INSERTION

public static final int INSERTION

DELETION

public static final int DELETION

DELETIONACK

public static final int DELETIONACK

DELETION_NACK

public static final int DELETION_NACK

ignoreNodes

public HashSet ignoreNodes
if type == DELETIONACK or DELETION_NACK, then this is the list of nodes we've already looked at, and are all leaving

nextSurrogate

public NodeId nextSurrogate
if type == DELETION_NACK, this is the next suggested surrogate node
Constructor Detail

DynamicObjMapMsg

public DynamicObjMapMsg(NodeId peer,
                        NodeId src,
                        SecureHash objguid,
                        LinkedList pinfo,
                        int objcount,
                        int seq)

DynamicObjMapMsg

public DynamicObjMapMsg(NodeId peer,
                        NodeId src,
                        SecureHash objguid,
                        LinkedList pinfo,
                        int objcount,
                        int seq,
                        int type)

DynamicObjMapMsg

public DynamicObjMapMsg(InputBuffer buffer)
                 throws QSException
Method Detail

addIgnoreNodes

public void addIgnoreNodes(HashSet toIgnore)

addNextSurrogate

public void addNextSurrogate(NodeId next)

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.
Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class NonceMsg
Following copied from interface: ostore.util.QuickSerializable
Parameters:
buffer - the output buffer to add the object to

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class NonceAckMsg

toString

public String toString()
Overrides:
toString in class NonceMsg