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
  • Constructor Details

    • ChunksManifestVerifier

      public ChunksManifestVerifier(ContentStore contentStore)
  • Method Details

    • 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