ostore.archive.events
Class QueryResp

java.lang.Object
  |
  +--ostore.archive.events.QueryResp
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class QueryResp
extends Object
implements QueueElementIF, QuickSerializable

QueryResp is an event class that responds to a QueryReq.

USAGE

The required field are a_guid (requested A-GUID), v_guid (resulting V-GUID), timestamp (time version was committed), version (version committed).

Version:
$Id: QueryResp.java,v 1.14 2002/07/22 20:54:52 srhea Exp $
Author:
Hakim Weatherspoon
See Also:
QueryReq

Field Summary
 SecureHash a_guid
          a_guid == requested Archived GUID.
 long timestamp
          version == version commited.
 SecureHash v_guid
          v_guid == resulting Version GUID.
 long version
          timestamp == time version was commited.
 
Constructor Summary
QueryResp()
          Constructor: Initializes instance variables to null.
QueryResp(InputBuffer buffer)
          Constructs a QueryResp from its serialized form.
 
Method Summary
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

a_guid

public SecureHash a_guid
a_guid == requested Archived GUID.


v_guid

public SecureHash v_guid
v_guid == resulting Version GUID.


version

public long version
timestamp == time version was commited.


timestamp

public long timestamp
version == version commited.

Constructor Detail

QueryResp

public QueryResp()
Constructor: Initializes instance variables to null.


QueryResp

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

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object