Class SpaceManifestSnapshotManifestVerifier
- java.lang.Object
-
- org.duracloud.snapshot.service.impl.SpaceManifestSnapshotManifestVerifier
-
public class SpaceManifestSnapshotManifestVerifier extends java.lang.ObjectThis class verifies that the space manifest and the snapshot manifests match. It will ignore the .collection-snapshot.properties file on the space manifest side. Additionally, since the snapshot manifest is a stitched view of what should be in the space, the stitched, rather than the unstitched, view of the space is used for comparison.- Author:
- Daniel Bernstien
-
-
Constructor Summary
Constructors Constructor Description SpaceManifestSnapshotManifestVerifier(java.io.File md5Manifest, org.duracloud.manifeststitch.StitchedManifestGenerator generator, java.lang.String spaceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getErrors()java.lang.StringgetSpaceId()booleanverify()Performs the verification.
-
-
-
Method Detail
-
getSpaceId
public java.lang.String getSpaceId()
-
verify
public boolean verify()
Performs the verification.- Returns:
- true if verification was a success. Otherwise false. Errors can be obtained by calling getErrors() after execution completes.
-
getErrors
public java.util.List<java.lang.String> getErrors()
-
-