|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.cache.CacheAssignReply
A response sent for a CacheAssignRequest
.
Response contains an array that was the same length as the
arrays contained in the original
CacheAssignRequest
. Each response element
contains either a SUCCESS
or FAILURE
.
A failure can happen if a Cacheable
already
existed and the handle
did not match.
Field Summary | |
---|---|
int |
requestId
The requesting stage, a constant from StageId . |
Constructor Summary | |
---|---|
CacheAssignReply(boolean[] responses,
CacheablePinned[] handles,
CacheableIdentity[] identifiers,
Cacheable[] cacheables,
SecureHash uniqueId,
int requestId)
Creates a request to assign a single handle. |
Method Summary | |
---|---|
Cacheable[] |
getCacheables()
Returns the array of cacheables
from the original CacheAssignRequest . |
CacheablePinned[] |
getHandles()
Returns the array of handles
from the original CacheAssignRequest . |
CacheableIdentity[] |
getIdentifiers()
Returns the array of identifiers
from the original CacheAssignRequest . |
SecureHash |
getReqUniqueId()
Returns the unique identifier for the original CacheAssignRequest |
boolean[] |
getResponses()
Returns the array of respones. |
String |
toString()
Returns a human-readable representation of this CacheAssignReply . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int requestId
StageId
.
Constructor Detail |
public CacheAssignReply(boolean[] responses, CacheablePinned[] handles, CacheableIdentity[] identifiers, Cacheable[] cacheables, SecureHash uniqueId, int requestId)
Method Detail |
public boolean[] getResponses()
public CacheablePinned[] getHandles()
handles
from the original CacheAssignRequest
.
public CacheableIdentity[] getIdentifiers()
identifiers
from the original CacheAssignRequest
.
public Cacheable[] getCacheables()
cacheables
from the original CacheAssignRequest
.
public SecureHash getReqUniqueId()
CacheAssignRequest
CacheAssignRequest
.public String toString()
CacheAssignReply
.
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |