ostore.inner
Class UpdateResp

java.lang.Object
  |
  +--ostore.inner.UpdateResp
All Implemented Interfaces:
QuickSerializable

public class UpdateResp
extends Object
implements QuickSerializable


Nested Class Summary
 class UpdateResp.UnsuccessfulException
           
 
Field Summary
 QSDate timestamp
           
 
Constructor Summary
UpdateResp(InputBuffer buffer)
           
UpdateResp(SecureHash digest, int action_num, SecureHash action_digest, GuidVersionMap pre_map, SortedMap hbs, QSDate ts)
           
UpdateResp(SecureHash digest, QSDate ts)
           
 
Method Summary
 SecureHash action_digest()
           
 int action_num()
           
 SortedMap heartbeats()
          Maps AGUIDs of changed files (represented as SecureHash's) to their new Heartbeat's as a result of the update.
 GuidVersionMap pre_map()
          Returns the AGUID->SecureHash map for objects accessed by the update.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 boolean success()
           
 String toString()
           
 SecureHash update_digest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

public QSDate timestamp
Constructor Detail

UpdateResp

public UpdateResp(SecureHash digest,
                  int action_num,
                  SecureHash action_digest,
                  GuidVersionMap pre_map,
                  SortedMap hbs,
                  QSDate ts)

UpdateResp

public UpdateResp(SecureHash digest,
                  QSDate ts)

UpdateResp

public UpdateResp(InputBuffer buffer)
           throws QSException
Method Detail

toString

public String toString()
Overrides:
toString in class Object

action_digest

public SecureHash action_digest()

update_digest

public SecureHash update_digest()

success

public boolean success()

action_num

public int action_num()
               throws UpdateResp.UnsuccessfulException
UpdateResp.UnsuccessfulException

heartbeats

public SortedMap heartbeats()
                     throws UpdateResp.UnsuccessfulException
Maps AGUIDs of changed files (represented as SecureHash's) to their new Heartbeat's as a result of the update.

UpdateResp.UnsuccessfulException

pre_map

public GuidVersionMap pre_map()
Returns the AGUID->SecureHash map for objects accessed by the update.


serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to