ostore.update
Class UpdateResult

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

public class UpdateResult
extends Object
implements QueueElementIF

An UpdateResult is a message used for internal communication between the InnerRing and the UpdateStage. After the UpdateStage has executed an update, it returns an UpdateResult to the InnerRing for agreement.

The map returned in the UpdateResult provides a mapping from Aguid to Vhash for all objects that were modified by the update.

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

Method Summary
 boolean getCommitted()
          Returns whether the update committed.
 Map getMap()
          Returns the map from Aguid to Vhash for all objects modified by the update.
 int getTupleExecuted()
          Returns the number of the tuple that was executed.
 SecureHash getUpdateDigest()
          Returns the digest of the update whose result is reported.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCommitted

public boolean getCommitted()
Returns whether the update committed.

Returns:
true if the update committed; false otherwise

getUpdateDigest

public SecureHash getUpdateDigest()
Returns the digest of the update whose result is reported.

Returns:
the digest of the update whose result is reported

getTupleExecuted

public int getTupleExecuted()
Returns the number of the tuple that was executed.

Returns:
the number of the tuple that was executed

getMap

public Map getMap()
Returns the map from Aguid to Vhash for all objects modified by the update.

Returns:
the map from Aguid to Vhash for all objects modified by the update

toString

public String toString()
Overrides:
toString in class Object