fabric.dissemination.pastry.messages
Class Replicate

java.lang.Object
  extended by fabric.dissemination.pastry.messages.Replicate

public class Replicate
extends java.lang.Object

This represents a Replicate message in the beehive system. Node A sends node B a replicate message with level i to request that B push objects with replication level i or lower to A. B is the level i decider for A.


Nested Class Summary
static class Replicate.Reply
          A reply to a replicate message, carrying the requested objects.
 
Constructor Summary
Replicate(InputBuffer buf, NodeHandle sender)
          Deserialization constructor.
Replicate(NodeHandle sender, int level, OidKeyHashMap<java.lang.Long> skip)
           
 
Method Summary
 int getPriority()
           
 short getType()
           
 int level()
           
 NodeHandle sender()
           
 void serialize(OutputBuffer buf)
           
 OidKeyHashMap<java.lang.Long> skip()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Replicate

public Replicate(NodeHandle sender,
                 int level,
                 OidKeyHashMap<java.lang.Long> skip)

Replicate

public Replicate(InputBuffer buf,
                 NodeHandle sender)
          throws java.io.IOException
Deserialization constructor.

Throws:
java.io.IOException
Method Detail

sender

public NodeHandle sender()

level

public int level()

skip

public OidKeyHashMap<java.lang.Long> skip()

getPriority

public int getPriority()

getType

public short getType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
Throws:
java.io.IOException