dd.api
Class DDThresholdTag

java.lang.Object
  |
  +--dd.api.DDThresholdTag
All Implemented Interfaces:
DDTag, QuickSerializable
Direct Known Subclasses:
RepairDirectoryTest.Tag, TriggerTester.Tag

public abstract class DDThresholdTag
extends Object
implements DDTag

DDThresholdTag is an extension of DDTag that defines a low_watermark (i.e. threshold) for the number of ptrs that triggers the root directory node to generate a DDRepairObjReq.

Version:
$Id: DDThresholdTag.java,v 1.2 2004/04/06 07:12:08 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
DDTag, DDRepairObjReq

Field Summary
 short low_watermark
          low_watermark is the threshold for the number of ptrs that triggers the root directory node to generate a DDRepairObjReq.
 
Constructor Summary
DDThresholdTag(InputBuffer buffer)
          Constructs a DDThresholdTag from its serialized form.
DDThresholdTag(short low_watermark)
          Constructor: Creates a new DDThresholdTag with given low_watermark.
 
Method Summary
 boolean equals(Object other)
          Compares this DDThresholdTag with another tag, and returns true iff they are the same type of tag.
 int hashCode()
          Calculates a Java hash code for this DDThresholdTag object (by returning its type_code).
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

low_watermark

public short low_watermark
low_watermark is the threshold for the number of ptrs that triggers the root directory node to generate a DDRepairObjReq.

Constructor Detail

DDThresholdTag

public DDThresholdTag(short low_watermark)
Constructor: Creates a new DDThresholdTag with given low_watermark.

Parameters:
low_watermark - Threshold for the number of ptrs that triggers the root directory node to generate a DDRepairObjReq.

DDThresholdTag

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

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable

equals

public boolean equals(Object other)
Compares this DDThresholdTag with another tag, and returns true iff they are the same type of tag.

Overrides:
equals in class Object
Parameters:
other - the object with which to compare this DDThresholdTag.
Returns:
true iff this and other are instanceof DDThresholdTag.

hashCode

public int hashCode()
Calculates a Java hash code for this DDThresholdTag object (by returning its type_code).

Overrides:
hashCode in class Object
Returns:
the Java hash code for this DDThresholdTag.

toString

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

Overrides:
toString in class Object