|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChunkedStorageProvider
Method Summary | |
---|---|
void |
deleteObject(String objectName,
Integer chunkCount)
Delete a chunk |
int |
getDefaultChunkSize()
Return the preferred chunk size for this provider |
ByteBuffer |
readChunk(String objectName,
int chunkId)
Read the request chunk id from the storage |
ObjectMetadata |
readMetadata(String objectName)
Retrieve information for a file |
int |
writeChunk(String objectName,
int chunkId,
ByteBuffer data,
Integer ttl)
Write a single chunk to the storage |
void |
writeMetadata(String objectName,
ObjectMetadata attr)
Persist all attributes for an object. |
Method Detail |
---|
int writeChunk(String objectName, int chunkId, ByteBuffer data, Integer ttl) throws Exception
chunk
-
Exception
ByteBuffer readChunk(String objectName, int chunkId) throws Exception, NotFoundException
name
- chunkId
-
Exception
NotFoundException
void deleteObject(String objectName, Integer chunkCount) throws Exception
objectName
- chunkId
-
Exception
void writeMetadata(String objectName, ObjectMetadata attr) throws Exception
objectName
- attr
-
Exception
ObjectMetadata readMetadata(String objectName) throws Exception, NotFoundException
objectName
-
Exception
NotFoundException
int getDefaultChunkSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |