public interface

ChunkedStorageProvider

com.netflix.astyanax.recipes.storage.ChunkedStorageProvider
Known Indirect Subclasses

Summary

Public Methods
abstract void deleteObject(String objectName, Integer chunkCount)
Delete a chunk
abstract int getDefaultChunkSize()
Return the preferred chunk size for this provider
abstract ByteBuffer readChunk(String objectName, int chunkId)
Read the request chunk id from the storage
abstract ObjectMetadata readMetadata(String objectName)
Retrieve information for a file@return
abstract int writeChunk(String objectName, int chunkId, ByteBuffer data, Integer ttl)
Write a single chunk to the storage
abstract void writeMetadata(String objectName, ObjectMetadata attr)
Persist all attributes for an object.

Public Methods

public abstract void deleteObject (String objectName, Integer chunkCount)

Delete a chunk

Throws
Exception

public abstract int getDefaultChunkSize ()

Return the preferred chunk size for this provider

public abstract ByteBuffer readChunk (String objectName, int chunkId)

Read the request chunk id from the storage

public abstract ObjectMetadata readMetadata (String objectName)

Retrieve information for a file@return

public abstract int writeChunk (String objectName, int chunkId, ByteBuffer data, Integer ttl)

Write a single chunk to the storage

Throws
Exception

public abstract void writeMetadata (String objectName, ObjectMetadata attr)

Persist all attributes for an object. Some attributes are written at the start of the operation but are updated after the file has been written with additional information such as the total number of chunks and the file size

Throws
Exception