ostore.replica
Class RemoteReplicaUpdateReq

java.lang.Object
  |
  +--dd.api.DDRouteMsg
        |
        +--ostore.replica.RemoteReplicaUpdateReq
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class RemoteReplicaUpdateReq
extends DDRouteMsg

A message sent by the ReplicaStage to a the ReplicaStage of a remote node. This message requests that the remote replica apply the tentative update (assuming it maintains a replica of the objects we wish to apply this to) and returns a response to the original sender (the client) about whether it succeeded or failed.

Eventually we may also want the remote replica to perform some other actions, such as resubmitting the update to the InnerRing if it does not receive an official response in X amount of time, etc.

Version:
$Id: RemoteReplicaUpdateReq.java,v 1.2 2004/05/13 20:16:27 hweather Exp $
Author:
Jeff Pang

Field Summary
 
Fields inherited from class dd.api.DDRouteMsg
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL
 
Constructor Summary
RemoteReplicaUpdateReq(InputBuffer buffer)
          Deserialize from buffer.
RemoteReplicaUpdateReq(SecureHash peer, ReplicaUpdateReq req, boolean recursive, boolean dd_intermediate_upcall, boolean one_hop)
           
 
Method Summary
 ReplicaUpdateReq req()
          Get the signed Update.
 void serialize(OutputBuffer buffer)
          Serialize to buffer.
 String toString()
          String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteReplicaUpdateReq

public RemoteReplicaUpdateReq(SecureHash peer,
                              ReplicaUpdateReq req,
                              boolean recursive,
                              boolean dd_intermediate_upcall,
                              boolean one_hop)
Parameters:
peer - the remote node we want to send this to
req - the update to perform signed by the original client sender.

RemoteReplicaUpdateReq

public RemoteReplicaUpdateReq(InputBuffer buffer)
                       throws QSException
Deserialize from buffer.

Method Detail

req

public final ReplicaUpdateReq req()
Get the signed Update.


serialize

public void serialize(OutputBuffer buffer)
Serialize to buffer.

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

toString

public String toString()
String representation.

Overrides:
toString in class Object