ostore.replica
Class ReplicaOpenReq

java.lang.Object
  |
  +--ostore.replica.ReplicaReq
        |
        +--ostore.replica.ReplicaOpenReq
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class ReplicaOpenReq
extends ReplicaReq

Events sent from the ClientStage to the ReplicaStage requesting the latter to create a local Replica.

Version:
$Id: ReplicaOpenReq.java,v 1.13 2002/07/29 18:48:54 geels Exp $
Author:
Dennis Geels

Field Summary
protected  boolean internal
          true iff this request was generated internally, rather than by a client application.
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.replica.ReplicaReq
digest, local, target
 
Constructor Summary
ReplicaOpenReq(InputBuffer buffer)
          Constructs a ReplicaOpenReq from its serialized form.
ReplicaOpenReq(SecureHash target, boolean publish)
          Constructs a new ReplicaOpenReq.
 
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 internally, rather than by a client application.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 
Methods inherited from class ostore.replica.ReplicaReq
get_digest, get_seq_num, get_target, hashCode, is_local, toString
 
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 internally, rather than by a client application.

The ReplicaStage generates internal ReplicaOpenReqs to help handle certain read requests.

Constructor Detail

ReplicaOpenReq

public ReplicaOpenReq(SecureHash target,
                      boolean publish)
Constructs a new ReplicaOpenReq.


ReplicaOpenReq

public ReplicaOpenReq(InputBuffer buffer)
               throws QSException
Constructs a ReplicaOpenReq 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 internally, rather than by a client application.


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