ostore.client
Class OSMetadataRequest

java.lang.Object
  |
  +--ostore.client.OSRequest
        |
        +--ostore.client.OSMetadataRequest
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class OSMetadataRequest
extends OSRequest

The OSMetadataRequest object is a request for reading object metadata.

Version:
$Id: OSMetadataRequest.java,v 1.12 2002/07/20 19:38:01 srhea Exp $
Author:
Patrick R. Eaton

Field Summary
 
Fields inherited from class ostore.client.OSRequest
app_id
 
Constructor Summary
OSMetadataRequest(InputBuffer buffer)
           
OSMetadataRequest(OSAppId app_id, SecureHash target, OSVersionPredicate ver_pred)
          Creates a new OSMetadataRequest request.
OSMetadataRequest(OSAppId app_id, SecureHash principal, QSPrivateKey principal_skey, SecureHash target, OSVersionPredicate ver_pred)
          Creates a new OSMetadataRequest request.
 
Method Summary
 SecureHash getPrincipal()
          Return the hash of the principal that created the read request.
 SecureHash getTarget()
           
 OSVersionPredicate getVersionPredicate()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class ostore.client.OSRequest
clone, getAppId, getDispatchTime, getSeqNum, getUserTag, setUserTag
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSMetadataRequest

public OSMetadataRequest(OSAppId app_id,
                         SecureHash target,
                         OSVersionPredicate ver_pred)
Creates a new OSMetadataRequest request.

Parameters:
app_id - the OSAppId to identify the requesting application
target - the aguid of the object from which to read
ver_pred - the version predicate to specify version constraints

OSMetadataRequest

public OSMetadataRequest(OSAppId app_id,
                         SecureHash principal,
                         QSPrivateKey principal_skey,
                         SecureHash target,
                         OSVersionPredicate ver_pred)
Creates a new OSMetadataRequest request.

Parameters:
app_id - the OSAppId to identify the requesting application
principal - the secure hash of the principal's public key
principal_skey - the principal's private key
target - the aguid of the object from which to read
ver_pred - the version predicate to specify version constraints

OSMetadataRequest

public OSMetadataRequest(InputBuffer buffer)
                  throws QSException
Method Detail

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

getPrincipal

public SecureHash getPrincipal()
Return the hash of the principal that created the read request.

Returns:
the hash of the principal that created the read request.

getTarget

public SecureHash getTarget()

getVersionPredicate

public OSVersionPredicate getVersionPredicate()

toString

public String toString()
Overrides:
toString in class Object