ostore.update
Class UpdateRequest

java.lang.Object
  |
  +--ostore.update.UpdateRequest
All Implemented Interfaces:
QueueElementIF

public class UpdateRequest
extends Object
implements QueueElementIF

An UpdateRequest is a message used for internal communication between the InnerRing and the UpdateStage. After the InnerRing has ordered the update and performed the necessary security checks, it passes the update to the UpdateStage.

In addition to the actual update, the UpdateRequest also contains a GuidVersionMap which provides a mapping from Aguid to version identifier (either Vhash or Vguid) for all objects which may be accessed by the update. The UpdateStage uses this map to ensure that it is applying the update to the correct version of the data object.

Version:
$Id: UpdateRequest.java,v 1.10 2002/07/22 20:54:53 srhea Exp $
Author:
Patrick R. Eaton

Constructor Summary
UpdateRequest(Update update, SecureHash digest, GuidVersionMap map, QSDate vcreate_time)
          Create a new UpdateRequest.
 
Method Summary
 GuidVersionMap getMap()
          Returns the mapping from Aguid to version identifier (either Vhash or Vguid) for all objects that may be accessed by the update.
 Update getUpdate()
          Returns the update to be executed.
 SecureHash getUpdateDigest()
          Returns the digest of the update
 QSDate getVCreateTime()
          Returns the version create time.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateRequest

public UpdateRequest(Update update,
                     SecureHash digest,
                     GuidVersionMap map,
                     QSDate vcreate_time)
Create a new UpdateRequest.

Parameters:
update - the update to be executed
digest - the digest of the update
map - a map from Aguid to version identifier for all objects that may be accessed by the update
vcreate_time - the time the new version as created, as dictated by the 'general' of the inner ring
Method Detail

getVCreateTime

public QSDate getVCreateTime()
Returns the version create time.

Returns:
the version create time

getUpdate

public Update getUpdate()
Returns the update to be executed.

Returns:
the update to be executed

getUpdateDigest

public SecureHash getUpdateDigest()
Returns the digest of the update

Returns:
the digest of the update

getMap

public GuidVersionMap getMap()
Returns the mapping from Aguid to version identifier (either Vhash or Vguid) for all objects that may be accessed by the update.

Returns:
the mapping from Aguid to version identifier for all object in the update

toString

public String toString()
Overrides:
toString in class Object