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
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionManifest()
Manifest
(RealizedPipeline realized) Manifest
(RealizedPipeline realized, LocalDateTime startTime) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Manifest.OutputInfo info) AddManifest.OutputInfo
to this manifest.static String
Produces a checksum from theMessageDigest
as aString
.static MessageDigest
Get a new instance of aMessageDigest
of the type used forManifest
checksums.static void
Verifies that the output files contained in manifest.txt have not been tampered with.void
write
(OutputStream output) Write the manifest to pipelineDirectory.void
Write 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_FILE
is appendedout
-Formatter
to write verification results to.
-
getDigestInstance
Get a new instance of a
MessageDigest
of the type used forManifest
checksums.The returned
MessageDigest
may be used withDigestOutputStream
to be updated as an output file is written.- Returns:
- message digest
-
checksum
Produces a checksum from the
MessageDigest
as 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
-Formatter
to write to
-
add
Add
Manifest.OutputInfo
to this manifest.Using this method is preferred as it takes care of concurrency.
- Parameters:
info
- output info to add
-