ostore.cache
Class CachePinnedReply

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

public class CachePinnedReply
extends Object
implements QueueElementIF

Version:
$Id: CachePinnedReply.java,v 1.7 2004/03/23 03:04:57 hweather Exp $ Similar to CacheBlockReply.java, but returns a pinned handle. Returns pinnedhandle to the request given for a specific block. The handle will be null if the request could not be satisfied.
Author:
Larry Tung

Nested Class Summary
static class CachePinnedReply.Local
          A simple class to store CachePinnedReply's to send to another local stage.
 
Field Summary
 int requestId
          id of stage requesting CacheBlockRequest Message
 Object userData
           
 
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()
          String with CachePinnedReply and the id associated with the reply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userData

public Object userData

requestId

public int requestId
id of stage requesting CacheBlockRequest Message

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()
String with CachePinnedReply and the id associated with the reply

Overrides:
toString in class Object