|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.duracloud.chunk.writer.DuracloudContentWriter
public class DuracloudContentWriter
This class implements the ContentWriter interface to write the provided content to the Duracloud storeclient interface.
Constructor Summary | |
---|---|
DuracloudContentWriter(ContentStore contentStore)
|
|
DuracloudContentWriter(ContentStore contentStore,
boolean throwOnError)
|
Method Summary | |
---|---|
java.util.List<AddContentResult> |
getResults()
This method returns an item-by-item list of results for the write requests. |
void |
ignore(java.lang.String spaceId,
java.lang.String contentId,
long contentSize)
This method helps with the book-keeping of which files are ignored. |
ChunksManifest |
write(java.lang.String spaceId,
ChunkableContent chunkable)
This method implements the ContentWriter interface for writing content to a DataStore. |
java.lang.String |
writeSingle(java.lang.String spaceId,
java.lang.String chunkChecksum,
ChunkInputStream chunk)
This method writes a single chunk to the DataStore. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DuracloudContentWriter(ContentStore contentStore)
public DuracloudContentWriter(ContentStore contentStore, boolean throwOnError)
Method Detail |
---|
public java.util.List<AddContentResult> getResults()
ContentWriter
getResults
in interface ContentWriter
public void ignore(java.lang.String spaceId, java.lang.String contentId, long contentSize)
ContentWriter
ignore
in interface ContentWriter
spaceId
- destination where arg content was assigned to be writtencontentId
- of contentcontentSize
- of contentpublic ChunksManifest write(java.lang.String spaceId, ChunkableContent chunkable) throws NotFoundException
write
in interface ContentWriter
spaceId
- destination space of arg chunkable contentchunkable
- content to be written
NotFoundException
- if space is not foundpublic java.lang.String writeSingle(java.lang.String spaceId, java.lang.String chunkChecksum, ChunkInputStream chunk) throws NotFoundException
writeSingle
in interface ContentWriter
spaceId
- destination where arg chunk content will be writtenchunkChecksum
- md5 checksum of the chunk if known, null otherwisechunk
- content to be written
NotFoundException
- if space is not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |