ostore.read
Class ReplicaMetadataReadResp

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

public class ReplicaMetadataReadResp
extends ReplicaReadResp

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

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

Field Summary
protected  Metadata metadata
          The metadata from a version of the specified Replica, or null.
 
Fields inherited from class ostore.read.ReplicaReadResp
missing, read, version
 
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
ReplicaMetadataReadResp(InputBuffer buffer)
          Constructs a ReplicaMetadataReadResp from its serialized form.
ReplicaMetadataReadResp(ReplicaReadReq req, int error_code)
          Constructs a new (failed) ReplicaMetadataReadResp.
ReplicaMetadataReadResp(ReplicaReadReq req, VID version, Metadata metadata)
          Constructs a new (successful) ReplicaMetadataReadResp.
 
Method Summary
 Metadata get_metadata()
          Returns the Metadata from a version of the specified replica, or null.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 
Methods inherited from class ostore.read.ReplicaReadResp
get_missing, get_read, get_version, toString
 
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

metadata

protected Metadata metadata
The metadata from a version of the specified Replica, or null.

metadata != null iff this.successful().

Constructor Detail

ReplicaMetadataReadResp

public ReplicaMetadataReadResp(ReplicaReadReq req,
                               VID version,
                               Metadata metadata)
Constructs a new (successful) ReplicaMetadataReadResp.


ReplicaMetadataReadResp

public ReplicaMetadataReadResp(ReplicaReadReq req,
                               int error_code)
Constructs a new (failed) ReplicaMetadataReadResp.


ReplicaMetadataReadResp

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

Method Detail

get_metadata

public Metadata get_metadata()
Returns the Metadata from a version of the specified replica, or null.


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