ostore.archive.events
Class QueryReq

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

public class QueryReq
extends Object
implements QueueElementIF, QuickSerializable

QueryReq is an event class that request that an A-GUID guid be resovled to a version guid (V-GUID). That is, V-GUID <- query(A-GUID).

USAGE

The required field are a_guid (Archive GUID), timestamp (commit time of version requested. should be set to -1 if looking for most recent), version (commit time of version requested. should be set to -1 if looking for most recent).

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

Field Summary
 SecureHash a_guid
          a_guid == Archive GUID.
 long timestamp
          timestamp == commit time of version requested.
 long version
          version == commit time of version requested.
 
Constructor Summary
QueryReq()
          Constructor: Initializes instance variables to null.
QueryReq(InputBuffer buffer)
          Constructs a QueryReq 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 == Archive GUID.


version

public long version
version == commit time of version requested. should be set to -1 if looking for most recent.


timestamp

public long timestamp
timestamp == commit time of version requested. should be set to -1 if looking for most recent.

Constructor Detail

QueryReq

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


QueryReq

public QueryReq(InputBuffer buffer)
         throws QSException
Constructs a QueryReq 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