ostore.cache
Class CacheReserveSpaceMessage

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

public class CacheReserveSpaceMessage
extends Object
implements QueueElementIF

Version:
$Id: CacheReserveSpaceMessage.java,v 1.12 2004/03/23 03:04:57 hweather Exp $ Request to reserve space in the cache, evicting things if necessary
Author:
Larry Tung

Field Summary
 int cacheType
          return the cacheType of cache that needs to be used to respond to request.
 int requestId
          String representing the name of the stage sending a CacheReserveSpaceMessage
 
Constructor Summary
CacheReserveSpaceMessage(CacheFullException cfe, int requestId)
          request to reserve space bytes in the cache.
CacheReserveSpaceMessage(int[] space, int requestId)
           
CacheReserveSpaceMessage(int[] space, int cacheType, int requestId)
           
CacheReserveSpaceMessage(int space, int requestId)
          request to reserve space bytes in the cache.
 
Method Summary
 int getCacheType()
          return the cacheType of cache that needs to be used to respond to request.
 int getRequestTag()
           
 int[] getSpace()
          return amount of space requested in the cache
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cacheType

public int cacheType
return the 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.


requestId

public int requestId
String representing the name of the stage sending a CacheReserveSpaceMessage

Constructor Detail

CacheReserveSpaceMessage

public CacheReserveSpaceMessage(int space,
                                int requestId)
request to reserve space bytes in the cache.


CacheReserveSpaceMessage

public CacheReserveSpaceMessage(int[] space,
                                int requestId)

CacheReserveSpaceMessage

public CacheReserveSpaceMessage(int[] space,
                                int cacheType,
                                int requestId)

CacheReserveSpaceMessage

public CacheReserveSpaceMessage(CacheFullException cfe,
                                int requestId)
request to reserve space bytes in the cache.

Method Detail

getSpace

public int[] getSpace()
return amount of space requested in the cache


getCacheType

public int getCacheType()
return the 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.


getRequestTag

public int getRequestTag()

toString

public String toString()
Overrides:
toString in class Object