ostore.tapestry.patchwork
Class PatchworkRevCountMsg

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--ostore.tapestry.patchwork.PatchworkRevCountMsg
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable

public class PatchworkRevCountMsg
extends NetworkMessage
implements QuickSerializable

This is mostly for testing, to inform other nodes of how many nodes are pointing at me.

Version:
$Id: PatchworkRevCountMsg.java,v 1.2 2002/09/20 07:33:20 hweather Exp $
Author:
Jeremy Stribling

Field Summary
 int level
           
 int num_ptrs
           
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, inbound, peer, sender, tries, user_data
 
Constructor Summary
PatchworkRevCountMsg(InputBuffer buffer)
           
PatchworkRevCountMsg(NodeId peer, int num_ptrs)
           
PatchworkRevCountMsg(NodeId peer, int num_ptrs, int level)
           
 
Method Summary
 Object clone()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

num_ptrs

public int num_ptrs

level

public int level
Constructor Detail

PatchworkRevCountMsg

public PatchworkRevCountMsg(NodeId peer,
                            int num_ptrs,
                            int level)

PatchworkRevCountMsg

public PatchworkRevCountMsg(NodeId peer,
                            int num_ptrs)

PatchworkRevCountMsg

public PatchworkRevCountMsg(InputBuffer buffer)
                     throws QSException
Method Detail

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 NetworkMessage
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 NetworkMessage

toString

public String toString()
Overrides:
toString in class NetworkMessage