public class LibraryCacheProfileResponse extends Object implements IOReadableWritable
| Constructor and Description |
|---|
LibraryCacheProfileResponse()
Constructs an empty library cache profile response.
|
LibraryCacheProfileResponse(LibraryCacheProfileRequest request)
Construct a library cache profile response from a given library cache profile
request and initially sets the cache status for all included library names to
false. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCached(int pos)
Returns the cache status of the library at the given position.
|
void |
read(DataInputView in) |
void |
setCached(int pos,
boolean cached)
Sets the cache status of the library at the given position.
|
void |
write(DataOutputView out) |
public LibraryCacheProfileResponse(LibraryCacheProfileRequest request)
false.request - the library cache profile request the response belongs topublic LibraryCacheProfileResponse()
public void setCached(int pos,
boolean cached)
pos - the position of the library name whose cache status is to be setcached - true if the library at the given position is in the local cache, false otherwisepublic boolean isCached(int pos)
pos - the position of the library name whose cache status is to be retrievedtrue if the library at the given position is in the local cache, false
otherwisepublic void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.