ostore.client
Class OSUpdateResult

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

public class OSUpdateResult
extends OSResult
implements QueueElementIF

The OSUpdateResult reports the outcome of an OSUpdate. The ClientStage constructs an OSUpdateResult by translating OceanStore's internal result.

Version:
$Id: OSUpdateResult.java,v 1.19 2002/07/22 20:54:53 srhea Exp $
Author:
Patrick R. Eaton
See Also:
OSUpdate

Field Summary
 
Fields inherited from class ostore.client.OSResult
app_id
 
Constructor Summary
OSUpdateResult(InputBuffer buffer)
           
 
Method Summary
 boolean getCommit()
          Returns an indication of whether the update committed or aborted.
 Map getHeartbeatMap()
           
 int getTupleNumber()
          Returns the number of the tuple that was executed.
 Map getVersionIdMap()
          Returns a mapping from Aguids to version identifiers for all data objects changed by the update.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
          Returns a string representation of the OSUpdateResult.
 
Methods inherited from class ostore.client.OSResult
getAppId, getReqSeqNum, getUserTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSUpdateResult

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

getCommit

public boolean getCommit()
Returns an indication of whether the update committed or aborted.

Returns:
true if the corresponding update commited; false otherwise

getTupleNumber

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

Returns:
the number of the tuple that was executed or -1 if the update did not commit

getHeartbeatMap

public Map getHeartbeatMap()

getVersionIdMap

public Map getVersionIdMap()
Returns a mapping from Aguids to version identifiers for all data objects changed by the update.

Returns:
a map from Aguids to version identifiers for all data objects changed by the update

toString

public String toString()
Returns a string representation of the OSUpdateResult.

Overrides:
toString in class Object
Returns:
a string representation of the OSUpdateResult.