|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.cache.CachePinnedRequest
Nested Class Summary | |
---|---|
static class |
CachePinnedRequest.Local
A simple class to store CachePinnedRequest's to send to another local stage. |
Field Summary | |
---|---|
int |
cacheType
|
int |
requestId
|
SinkIF |
sink
|
Object |
userData
|
Constructor Summary | |
---|---|
CachePinnedRequest()
create an empty request message |
|
CachePinnedRequest(CacheableIdentity id,
boolean useNetwork,
boolean useDisk,
SecureHash aguid,
int requestId)
ask the cache for a handle to the block with id |
|
CachePinnedRequest(CacheableIdentity id,
boolean useNetwork,
boolean useDisk,
SecureHash aguid,
Object userData,
SinkIF sink)
ask the cache for a handle to the block with id |
|
CachePinnedRequest(CacheableIdentity id,
boolean useNetwork,
int requestId)
ask the cache for a handle to the block with id |
|
CachePinnedRequest(CacheableIdentity id,
boolean useNetwork,
SecureHash aguid,
int requestId)
ask the cache for a handle to the block with id |
|
CachePinnedRequest(CacheableIdentity id,
int requestId)
ask the cache for a handle to the block with id |
|
CachePinnedRequest(CacheMissException cme,
boolean useNetwork,
boolean useDisk,
SecureHash aguid,
int requestId)
ask the cache for a handle to the block with id |
Method Summary | |
---|---|
SecureHash |
getAguid()
getAguid returns A-GUID of the object that the block belongs. |
CacheableIdentity |
getID()
|
int |
getRequestId()
|
boolean |
getUseDisk()
getUseDisk returns true if cache should automatically go to disk. |
boolean |
getUseNetwork()
getUseNetwork returns true if cache should automatically go to network. |
void |
setAguid(SecureHash aguid)
setAguid sets A-GUID of the object that the block belongs. |
void |
setID(CacheableIdentity id)
set the CacheableIdentity id |
void |
setUseDisk(boolean useDisk)
setUseDisk returns true if cache should automatically go to disk. |
void |
setUseNetwork(boolean useNetwork)
setUseNetwork returns true if cache should automatically go to network. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int requestId
public int cacheType
public Object userData
public SinkIF sink
Constructor Detail |
public CachePinnedRequest()
public CachePinnedRequest(CacheableIdentity id, int requestId)
requestId
- name of stage making the requestpublic CachePinnedRequest(CacheableIdentity id, boolean useNetwork, int requestId)
requestId
- name of stage making the requestpublic CachePinnedRequest(CacheableIdentity id, boolean useNetwork, SecureHash aguid, int requestId)
requestId
- name of stage making the requestpublic CachePinnedRequest(CacheableIdentity id, boolean useNetwork, boolean useDisk, SecureHash aguid, int requestId)
requestId
- name of stage making the requestpublic CachePinnedRequest(CacheMissException cme, boolean useNetwork, boolean useDisk, SecureHash aguid, int requestId)
requestId
- name of stage making the requestpublic CachePinnedRequest(CacheableIdentity id, boolean useNetwork, boolean useDisk, SecureHash aguid, Object userData, SinkIF sink)
Method Detail |
public void setID(CacheableIdentity id)
public CacheableIdentity getID()
public boolean getUseNetwork()
public void setUseNetwork(boolean useNetwork)
useNetwork
- =
true if cache should automatically go to network, false otherwise.public boolean getUseDisk()
public void setUseDisk(boolean useDisk)
useDisk
- =
true if cache should automatically go to disk, false otherwise.public SecureHash getAguid()
public void setAguid(SecureHash aguid)
aguid
- =
A-GUID of the object that the block belongs.public int getRequestId()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |