ostore.client
Class OSRead

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

public class OSRead
extends OSRequest

The OSRead object is a request for reading objects....

Version:
$Id: OSRead.java,v 1.27 2002/12/19 22:11:34 eaton Exp $
Author:
Patrick R. Eaton

Field Summary
 
Fields inherited from class ostore.client.OSRequest
app_id
 
Constructor Summary
OSRead(InputBuffer buffer)
           
OSRead(OSAppId app_id, SecureHash target, OSVersionPredicate ver_pred, Selection selection)
          Creates a new OSRead request.
OSRead(OSAppId app_id, SecureHash principal, QSPrivateKey principal_skey, SecureHash target, OSVersionPredicate ver_pred, Selection selection)
          Creates a new OSRead request.
 
Method Summary
 SecureHash getAguid()
           
 SecureHash getPrincipal()
          Return the hash of the principal that created the read request.
 Selection getSelection()
           
 SecureHash getTarget()
           
 OSVersionPredicate getVersionPredicate()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 void setOnNodeFlag()
          NOT FOR GENERAL USE
 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

OSRead

public OSRead(OSAppId app_id,
              SecureHash target,
              OSVersionPredicate ver_pred,
              Selection selection)
Creates a new OSRead 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
selection - the selection representing the data to be read from the object

OSRead

public OSRead(OSAppId app_id,
              SecureHash principal,
              QSPrivateKey principal_skey,
              SecureHash target,
              OSVersionPredicate ver_pred,
              Selection selection)
Creates a new OSRead 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
selection - the selection representing the data to be read from the object

OSRead

public OSRead(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.

getAguid

public SecureHash getAguid()

getTarget

public SecureHash getTarget()

getSelection

public Selection getSelection()

getVersionPredicate

public OSVersionPredicate getVersionPredicate()

setOnNodeFlag

public void setOnNodeFlag()
NOT FOR GENERAL USE


toString

public String toString()
Overrides:
toString in class Object