ostore.replica
Class ReplicaTag

java.lang.Object
  |
  +--ostore.replica.ReplicaTag
All Implemented Interfaces:
DDTag, QuickSerializable

public class ReplicaTag
extends Object
implements DDTag

The Tapestry tag published by object replicas (second-tier and clients).

Version:
$Id: ReplicaTag.java,v 1.17 2004/05/13 20:16:27 hweather Exp $
Author:
Dennis Geels

Field Summary
 QSInt depth
          The number of hops down the dissemination tree from the primary replica (inner ring).
 
Constructor Summary
ReplicaTag(InputBuffer buffer)
          Constructs a ReplicaTag from its serialized form.
ReplicaTag(QSInt depth)
          Creates a new ReplicaTag.
 
Method Summary
 boolean equals(Object other)
          Tests whether this tag is equivalent to another.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

depth

public QSInt depth
The number of hops down the dissemination tree from the primary replica (inner ring).

TODO: replace with more general QoS.

Constructor Detail

ReplicaTag

public ReplicaTag(QSInt depth)
Creates a new ReplicaTag.

Parameters:
depth - The publishing node's depth from the inner ring, measured in dissemination tree links.

ReplicaTag

public ReplicaTag(InputBuffer buffer)
           throws QSException
Constructs a ReplicaTag from its serialized form.

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
Parameters:
buffer - the output buffer to add the object to

equals

public boolean equals(Object other)
Tests whether this tag is equivalent to another. Unpublishing a tag requires matching it here.

Overrides:
equals in class Object

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object