ostore.cache
Class CacheUnpinRequest

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

public class CacheUnpinRequest
extends Object
implements QueueElementIF

A request to the MemoryCache to release some pins.

Version:
$Id: CacheUnpinRequest.java,v 1.3 2004/03/23 03:04:57 hweather Exp $
Author:
Dennis Geels

Field Summary
 int cacheType
          cacheType of cache that needs to be used to respond to request.
 int requestId
          The requesting stage, a constant from StageId.
 
Constructor Summary
CacheUnpinRequest(CacheablePinned[] handles, int requestId)
          Creates a request to unpin several handles.
CacheUnpinRequest(CacheablePinned handle, int requestId)
          Creates a request to unpin a single handle.
 
Method Summary
 CacheablePinned[] get_handles()
          Returns the array of handles to unpin.
 String toString()
          Returns a human-readable representation of this CacheUnpinRequest.
 
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.


cacheType

public int cacheType
cacheType of cache that needs to be used to respond to request. E.g. a cache that knows how to handle blocks named by GUID's or VHASH's, or a knows how to handle disseminatables (i.e. fragments and tombstones), etc.

Constructor Detail

CacheUnpinRequest

public CacheUnpinRequest(CacheablePinned handle,
                         int requestId)
Creates a request to unpin a single handle.


CacheUnpinRequest

public CacheUnpinRequest(CacheablePinned[] handles,
                         int requestId)
Creates a request to unpin several handles.

Method Detail

get_handles

public CacheablePinned[] get_handles()
Returns the array of handles to unpin.


toString

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

Overrides:
toString in class Object