Package nz.org.riskscape.engine.pipeline
Class Manifest
java.lang.Object
nz.org.riskscape.engine.pipeline.Manifest
metadata from the execution of a pipeline
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionManifest()Manifest(RealizedPipeline realized) Manifest(RealizedPipeline realized, LocalDateTime startTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Manifest.OutputInfo info) AddManifest.OutputInfoto this manifest.static StringProduces a checksum from theMessageDigestas aString.static MessageDigestGet a new instance of aMessageDigestof the type used forManifestchecksums.static voidVerifies that the output files contained in manifest.txt have not been tampered with.voidwrite(OutputStream output) Write the manifest to pipelineDirectory.voidWrite the manifest file describing a pipeline run.
-
Field Details
-
MANIFEST_FILE
Filename of manifest file.
- See Also:
-
pipelineId
-
pipelineDescription
-
steps
-
startTime
-
finishTime
-
outputs
-
versionInfo
-
localInfo
-
-
Constructor Details
-
Manifest
public Manifest() -
Manifest
-
Manifest
-
-
Method Details
-
verify
Verifies that the output files contained in manifest.txt have not been tampered with.
- Parameters:
manifestFile- path to the manifest file to verify, if this is a directory thenMANIFEST_FILEis appendedout-Formatterto write verification results to.
-
getDigestInstance
Get a new instance of a
MessageDigestof the type used forManifestchecksums.The returned
MessageDigestmay be used withDigestOutputStreamto be updated as an output file is written.- Returns:
- message digest
-
checksum
Produces a checksum from the
MessageDigestas aString.- Parameters:
md- digest to checksum- Returns:
- checksum from md as a string
-
write
Write the manifest to pipelineDirectory.
- Parameters:
output- stream to write manifest bytes to. Expected to contain outputs.
-
writeTo
Write the manifest file describing a pipeline run.
- Parameters:
f-Formatterto write to
-
add
Add
Manifest.OutputInfoto this manifest.Using this method is preferred as it takes care of concurrency.
- Parameters:
info- output info to add
-