ostore.dtree
Class JoinTreeReq

java.lang.Object
  |
  +--ostore.dtree.DTreeReq
        |
        +--ostore.dtree.JoinTreeReq
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class JoinTreeReq
extends DTreeReq

Messages instructing the local DTreeNode to tie into a dissemination tree.

Version:
$Id: JoinTreeReq.java,v 1.15 2002/07/29 18:48:53 geels Exp $
Author:
Dennis Geels

Field Summary
protected  boolean internal
          true iff this request was generated by the DTreeNode, rather than by the ReplicaStage.
protected  boolean publish
          true iff the local server wishes to publish itself as an available secondary replica in the tree.
 
Fields inherited from class ostore.dtree.DTreeReq
digest, tree_id
 
Constructor Summary
JoinTreeReq(InputBuffer buffer)
          Constructs a JoinTreeReq from its serialized form.
JoinTreeReq(SecureHash tree_id, boolean publish)
          Creates a new request for the specified tree.
 
Method Summary
 boolean get_publish_flag()
          Returns true iff the local server wishes to publish itself as an available secondary replica in the tree.
 boolean is_internal()
          Returns true iff this request was generated by the DTreeNode, rather than by the ReplicaStage.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
          Returns a human-readable representation of this JoinTreeReq.
 
Methods inherited from class ostore.dtree.DTreeReq
get_digest, get_seq_num, get_tree_id, hashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

publish

protected boolean publish
true iff the local server wishes to publish itself as an available secondary replica in the tree. This flag should be false for client machines which only want to be leaves on the tree.


internal

protected boolean internal
true iff this request was generated by the DTreeNode, rather than by the ReplicaStage.

Constructor Detail

JoinTreeReq

public JoinTreeReq(SecureHash tree_id,
                   boolean publish)
Creates a new request for the specified tree.

Parameters:
tree_id - the A-GUID for the tree's data object.
publish - true iff this server should advertise as a secondary replica in Tapestry.

JoinTreeReq

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

Method Detail

get_publish_flag

public boolean get_publish_flag()
Returns true iff the local server wishes to publish itself as an available secondary replica in the tree.


is_internal

public boolean is_internal()
Returns true iff this request was generated by the DTreeNode, rather than by the ReplicaStage.


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

toString

public String toString()
Returns a human-readable representation of this JoinTreeReq.

Overrides:
toString in class DTreeReq