ostore.cache
Class CachePinnedReply.Local

java.lang.Object
  |
  +--ostore.cache.CachePinnedReply.Local
All Implemented Interfaces:
QueueElementIF
Enclosing class:
CachePinnedReply

public static class CachePinnedReply.Local
extends Object
implements QueueElementIF

A simple class to store CachePinnedReply's to send to another local stage.


Field Summary
 int requestId
           
 
Constructor Summary
CachePinnedReply.Local(CacheableIdentity id, CacheablePinned handle, int requestId)
          Constructs a new CachePinnedReply.Local.
 
Method Summary
 Cacheable getBlock()
          return the cacheable requested
 CacheablePinned getHandle()
          return the CacheablePinned for the Cacheable requested (null if the request could not be satisfied)
 CacheableIdentity getID()
          return the CacheableIdentity stored in the CachePinnedReply
 int getRequestId()
          id of stage requesting the block.
 String toString()
          Returns a human-readable representation of this CachePinnedReply.Local.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

requestId

public int requestId
Constructor Detail

CachePinnedReply.Local

public CachePinnedReply.Local(CacheableIdentity id,
                              CacheablePinned handle,
                              int requestId)
Constructs a new CachePinnedReply.Local.

Parameters:
id - CacheableIdentity.
handle - CacheablePinned
Method Detail

getID

public CacheableIdentity getID()
return the CacheableIdentity stored in the CachePinnedReply


getHandle

public CacheablePinned getHandle()
return the CacheablePinned for the Cacheable requested (null if the request could not be satisfied)


getBlock

public Cacheable getBlock()
return the cacheable requested


getRequestId

public int getRequestId()
id of stage requesting the block.


toString

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

Overrides:
toString in class Object