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
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
applicationaguid - 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
applicationaguid - the aguid of the object for which to open of a replica;
also the guid to route toproximity - 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
applicationaguid - the aguid of the object for which to open of a replicapeer - the guid to route to in tapestryproximity - how many ttl-units (e.g., hops) to route this message
before stopping
OSOpenReplicaRequest
public OSOpenReplicaRequest(InputBuffer buffer)
throws QSException
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