ostore.replica
Class ReplicaTag
java.lang.Object
|
+--ostore.replica.ReplicaTag
- All Implemented Interfaces:
- QuickSerializable, TapestryTag
- public class ReplicaTag
- extends Object
- implements TapestryTag
The Tapestry tag published by object replicas (second-tier and clients).
- Version:
- $Id: ReplicaTag.java,v 1.16 2003/02/23 23:11:41 hweather Exp $
- Author:
- Dennis Geels
Field Summary |
QSInt |
depth
The number of hops down the dissemination tree from the primary
replica (inner ring). |
depth
public QSInt depth
- The number of hops down the dissemination tree from the primary
replica (inner ring).
TODO: replace with more general QoS.
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
serialize
d form.
serialize
public void serialize(OutputBuffer buffer)
- Description copied from interface:
QuickSerializable
- Add the object to the
buffer
.
- Specified by:
serialize
in interface QuickSerializable
- Following copied from interface:
ostore.util.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