Package org.duracloud.chunk.util
Class ChunksManifestVerifier
- java.lang.Object
-
- org.duracloud.chunk.util.ChunksManifestVerifier
-
public class ChunksManifestVerifier extends Object
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 Classes Modifier and Type Class Description static classChunksManifestVerifier.Resultstatic classChunksManifestVerifier.Results
-
Constructor Summary
Constructors Constructor Description ChunksManifestVerifier(ContentStore contentStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChunksManifestVerifier.ResultsverifyAllChunks(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 Detail
-
ChunksManifestVerifier
public ChunksManifestVerifier(ContentStore contentStore)
-
-
Method Detail
-
verifyAllChunks
public ChunksManifestVerifier.Results verifyAllChunks(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. 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
-
-