ostore.client
Class OSOpenReplicaRequest

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

public class OSOpenReplicaRequest
extends OSRequest

Version:
$Id: OSOpenReplicaRequest.java,v 1.18 2004/05/13 20:52:42 hweather Exp $
Author:
Patrick R. Eaton

Field Summary
 
Fields inherited from class ostore.client.OSRequest
app_id
 
Constructor Summary
OSOpenReplicaRequest(InputBuffer buffer)
           
OSOpenReplicaRequest(OSAppId app_id, SecureHash aguid)
          Create a new OSOpenReplicaRequest for an object of the given aguid.
OSOpenReplicaRequest(OSAppId app_id, SecureHash aguid, int proximity)
          Create a new OSOpenReplicaRequest for an object on a remote node.
OSOpenReplicaRequest(OSAppId app_id, SecureHash aguid, SecureHash peer, int proximity)
          Create a new OSOpenReplicaRequest for an object on a remote node.
 
Method Summary
 SecureHash getAguid()
           
 SecureHash getPeer()
           
 int getProximity()
           
 String getRequestType()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class ostore.client.OSRequest
clone, getAppId, getDispatchTime, getSeqNum, getUserTag, setUserTag
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSOpenReplicaRequest

public OSOpenReplicaRequest(OSAppId app_id,
                            SecureHash aguid)
Create a new OSOpenReplicaRequest for an object of the given aguid.

Parameters:
app_id - the OSAppId to identify the requesting application
aguid - the aguid of the object for which to open of a replica

OSOpenReplicaRequest

public OSOpenReplicaRequest(OSAppId app_id,
                            SecureHash aguid,
                            int proximity)
Create a new OSOpenReplicaRequest for an object on a remote node. This message is routed toward the aguid.

Parameters:
app_id - the OSAppId to identify the requesting application
aguid - the aguid of the object for which to open of a replica; also the guid to route to
proximity - how many ttl-units (e.g., hops) to route this message before stopping

OSOpenReplicaRequest

public OSOpenReplicaRequest(OSAppId app_id,
                            SecureHash aguid,
                            SecureHash peer,
                            int proximity)
Create a new OSOpenReplicaRequest for an object on a remote node. This message is routed toward the peer.

Parameters:
app_id - the OSAppId to identify the requesting application
aguid - the aguid of the object for which to open of a replica
peer - the guid to route to in tapestry
proximity - how many ttl-units (e.g., hops) to route this message before stopping

OSOpenReplicaRequest

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

getAguid

public SecureHash getAguid()

getPeer

public SecureHash getPeer()

getProximity

public int getProximity()

getRequestType

public String getRequestType()
Overrides:
getRequestType in class OSRequest

toString

public String toString()
Overrides:
toString in class Object