ostore.cache
Class CacheAssignReply

java.lang.Object
  |
  +--ostore.cache.CacheAssignReply
All Implemented Interfaces:
QueueElementIF

public class CacheAssignReply
extends Object
implements QueueElementIF

A response sent for a CacheAssignRequest. Response contains an array that was the same length as the arrays contained in the original CacheAssignRequest. Each response element contains either a SUCCESS or FAILURE. A failure can happen if a Cacheable already existed and the handle did not match.

Version:
$Id: CacheAssignReply.java,v 1.1 2003/02/07 20:51:36 hweather Exp $
Author:
Hakim Weatherspoon

Field Summary
 int requestId
          The requesting stage, a constant from StageId.
 
Constructor Summary
CacheAssignReply(boolean[] responses, CacheablePinned[] handles, CacheableIdentity[] identifiers, Cacheable[] cacheables, SecureHash uniqueId, int requestId)
          Creates a request to assign a single handle.
 
Method Summary
 Cacheable[] getCacheables()
          Returns the array of cacheables from the original CacheAssignRequest.
 CacheablePinned[] getHandles()
          Returns the array of handles from the original CacheAssignRequest.
 CacheableIdentity[] getIdentifiers()
          Returns the array of identifiers from the original CacheAssignRequest.
 SecureHash getReqUniqueId()
          Returns the unique identifier for the original CacheAssignRequest
 boolean[] getResponses()
          Returns the array of respones.
 String toString()
          Returns a human-readable representation of this CacheAssignReply.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

requestId

public int requestId
The requesting stage, a constant from StageId.

Constructor Detail

CacheAssignReply

public CacheAssignReply(boolean[] responses,
                        CacheablePinned[] handles,
                        CacheableIdentity[] identifiers,
                        Cacheable[] cacheables,
                        SecureHash uniqueId,
                        int requestId)
Creates a request to assign a single handle.

Method Detail

getResponses

public boolean[] getResponses()
Returns the array of respones.


getHandles

public CacheablePinned[] getHandles()
Returns the array of handles from the original CacheAssignRequest.


getIdentifiers

public CacheableIdentity[] getIdentifiers()
Returns the array of identifiers from the original CacheAssignRequest.


getCacheables

public Cacheable[] getCacheables()
Returns the array of cacheables from the original CacheAssignRequest.


getReqUniqueId

public SecureHash getReqUniqueId()
Returns the unique identifier for the original CacheAssignRequest

Returns:
unique identifier for the CacheAssignRequest.

toString

public String toString()
Returns a human-readable representation of this CacheAssignReply.

Overrides:
toString in class Object