Package org.duracloud.chunk.util
Class ChunksManifestVerifier
java.lang.Object
org.duracloud.chunk.util.ChunksManifestVerifier
This class is responsible for verifying that all the chunks listed in a given
chunk manifest exactly match the actual chunks stored in a specified space.
- Author:
- dbernstein
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionverifyAllChunks(String spaceId, ChunksManifest manifest) Verifies the bytes and checksums of the chunks specified in the manifest match what is in DuraCloud and returns a listing of the chunks with a flag indicating whether the check was successful as well as an error message if it was not.
-
Constructor Details
-
ChunksManifestVerifier
-
-
Method Details
-
verifyAllChunks
Verifies the bytes and checksums of the chunks specified in the manifest match what is in DuraCloud and returns a listing of the chunks with a flag indicating whether the check was successful as well as an error message if it was not. You can use the result.isSuccess() method as a shortcut for determining whether all the items in the manifest matched on another.- Parameters:
spaceId-manifest-- Returns:
- a list of results - one for each chunk.
- Throws:
ContentStoreException
-