ostore.replica
Class ReplicaUpdateResp

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

public class ReplicaUpdateResp
extends ReplicaResp

Events sent from the ReplicaStage to the ClientStage responding to ReplicaUpdateReq events.

WARNING: The local request digest returned by get_req_digest may not equal the remote request digest returned by get_update_resp().update_digest(). Use the local one.

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

Field Summary
protected  UpdateResp update_resp
          The result of the update
 
Fields inherited from class ostore.replica.ReplicaResp
digest, error_code, local, NO_ERROR, NOT_OPEN, OBJECT_NOT_FOUND, READ_ERROR, req_digest, target, VERSION_PREDICATE_NOT_SATISFIED
 
Constructor Summary
ReplicaUpdateResp(InputBuffer buffer)
          Constructs a ReplicaUpdateResp from its serialized form.
ReplicaUpdateResp(ReplicaUpdateReq req, UpdateResp update_resp)
          Constructs a new (successful) ReplicaUpdateResp.
 
Method Summary
 UpdateResp get_update_resp()
          Returns the result of the update.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
          Returns a human-readable representation of this ReplicaUpdateResp.
 
Methods inherited from class ostore.replica.ReplicaResp
get_digest, get_error_code, get_req_digest, get_target, hashCode, is_local, successful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

update_resp

protected UpdateResp update_resp
The result of the update

Constructor Detail

ReplicaUpdateResp

public ReplicaUpdateResp(ReplicaUpdateReq req,
                         UpdateResp update_resp)
Constructs a new (successful) ReplicaUpdateResp.


ReplicaUpdateResp

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

Method Detail

get_update_resp

public UpdateResp get_update_resp()
Returns the result of the update.


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

toString

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

Overrides:
toString in class ReplicaResp