ostore.replica
Class ReplicaCreateReq

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

public class ReplicaCreateReq
extends ReplicaReq

Events sent from the ClientStage to the ReplicaStage containing a signed request to create a new object.

Version:
$Id: ReplicaCreateReq.java,v 1.12 2003/03/11 19:03:53 jeffpang Exp $
Author:
Dennis Geels

Field Summary
 
Fields inherited from class ostore.replica.ReplicaReq
digest, local, target
 
Constructor Summary
ReplicaCreateReq(InputBuffer buffer)
          Constructs a ReplicaCreateReq from its serialized form.
ReplicaCreateReq(SecureHash target, SignedQS signed_create_req, QSArray initial_update)
          Constructs a new ReplicaCreateReq.
 
Method Summary
 SignedQS get_create_req()
          Returns the signed CreateObjectReq request from the client.
 QSArray get_initial_update()
          Return the initial update, null if none
 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
 

Constructor Detail

ReplicaCreateReq

public ReplicaCreateReq(SecureHash target,
                        SignedQS signed_create_req,
                        QSArray initial_update)
Constructs a new ReplicaCreateReq.


ReplicaCreateReq

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

Method Detail

get_create_req

public SignedQS get_create_req()
Returns the signed CreateObjectReq request from the client.


get_initial_update

public QSArray get_initial_update()
Return the initial update, null if none


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