public interface ChunkedStorageProvider
| Modifier and Type | Method and Description |
|---|---|
void |
deleteObject(java.lang.String objectName,
java.lang.Integer chunkCount)
Delete a chunk
|
int |
getDefaultChunkSize() |
java.nio.ByteBuffer |
readChunk(java.lang.String objectName,
int chunkId)
Read the request chunk id from the storage
|
ObjectMetadata |
readMetadata(java.lang.String objectName)
Retrieve information for a file
|
int |
writeChunk(java.lang.String objectName,
int chunkId,
java.nio.ByteBuffer data,
java.lang.Integer ttl)
Write a single chunk to the storage
|
void |
writeMetadata(java.lang.String objectName,
ObjectMetadata attr)
Persist all attributes for an object.
|
int writeChunk(java.lang.String objectName,
int chunkId,
java.nio.ByteBuffer data,
java.lang.Integer ttl)
throws java.lang.Exception
chunk - java.lang.Exceptionjava.nio.ByteBuffer readChunk(java.lang.String objectName,
int chunkId)
throws java.lang.Exception,
com.netflix.astyanax.connectionpool.exceptions.NotFoundException
name - chunkId - java.lang.Exceptioncom.netflix.astyanax.connectionpool.exceptions.NotFoundExceptionvoid deleteObject(java.lang.String objectName,
java.lang.Integer chunkCount)
throws java.lang.Exception
objectName - chunkId - java.lang.Exceptionvoid writeMetadata(java.lang.String objectName,
ObjectMetadata attr)
throws java.lang.Exception
objectName - attr - java.lang.ExceptionObjectMetadata readMetadata(java.lang.String objectName) throws java.lang.Exception, com.netflix.astyanax.connectionpool.exceptions.NotFoundException
objectName - java.lang.Exceptioncom.netflix.astyanax.connectionpool.exceptions.NotFoundExceptionint getDefaultChunkSize()