ostore.client
Class OSVPLatest

java.lang.Object
  |
  +--ostore.client.OSVersionPredicate
        |
        +--ostore.client.OSVPLatest
All Implemented Interfaces:
QuickSerializable

public class OSVPLatest
extends OSVersionPredicate

The OSVPLatest object is a version predicate for use in OSReads that is satisfied by the most recent version known by node in OceanStore. Note, this version predicate provides very loose guarantees on the object returned.

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

Field Summary
 QSDate now
           
 
Constructor Summary
OSVPLatest()
          Creates a new OSVPLatest version predicate.
OSVPLatest(Date date)
           
OSVPLatest(InputBuffer buffer)
           
 
Method Summary
 VersionPredicate compile()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
          Returns a String representation of this OSVersionPredicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

now

public QSDate now
Constructor Detail

OSVPLatest

public OSVPLatest()
Creates a new OSVPLatest version predicate.


OSVPLatest

public OSVPLatest(Date date)

OSVPLatest

public OSVPLatest(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 OSVersionPredicate
Parameters:
buffer - the output buffer to add the object to

toString

public String toString()
Description copied from class: OSVersionPredicate
Returns a String representation of this OSVersionPredicate.

Specified by:
toString in class OSVersionPredicate
Returns:
a String represenation of this OSVersionPredicate

compile

public VersionPredicate compile()
Overrides:
compile in class OSVersionPredicate