|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.duracloud.chunk.writer.FilesystemContentWriter
public class FilesystemContentWriter
This class implements the ContentWriter interface to write the provided content to a local filesystem.
Constructor Summary | |
---|---|
FilesystemContentWriter()
|
Method Summary | |
---|---|
List<AddContentResult> |
getResults()
This method returns the results of the content write requests. |
void |
ignore(String spaceId,
String contentId,
long contentSize)
This method helps with the book-keeping of which files are ignored. |
ChunksManifest |
write(String spaceId,
ChunkableContent chunkable)
This method implements the ContentWriter interface for writing content to a DataStore. |
String |
writeSingle(String spaceId,
String chunkChecksum,
ChunkInputStream chunk)
This method implements the ContentWriter interface for writing content to a DataStore. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilesystemContentWriter()
Method Detail |
---|
public List<AddContentResult> getResults()
getResults
in interface ContentWriter
public void ignore(String spaceId, 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(String spaceId, ChunkableContent chunkable) throws NotFoundException
write
in interface ContentWriter
spaceId
- destination where arg chunkable content will be writtenchunkable
- content to be written
NotFoundException
- on errorpublic String writeSingle(String spaceId, String chunkChecksum, ChunkInputStream chunk) throws NotFoundException
writeSingle
in interface ContentWriter
spaceId
- destination where arg chunk content will be writtenchunk
- content to be writtenchunkChecksum
- md5 checksum of the chunk if known, null otherwise
NotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |