Package io.bdeploy.bhive.model
Class Manifest
java.lang.Object
io.bdeploy.bhive.model.Manifest
- All Implemented Interfaces:
Serializable,Comparable<Manifest>
Represents a manifest. A manifest is a top-level object making
Trees
more easy to remember, associating a name and additional labels (meta-data)
with it.
Note that the labels are NOT part of the manifests ID.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to create a Manifest.static final classRepresents the unique ID of a manifest.static class -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetCachedReferences(BHiveExecution hive, int depth, boolean allowMissing) Retrieves a set of cached dependencies.getKey()getRoot()inthashCode()toString()
-
Method Details
-
getKey
- Returns:
- the manifest key used to uniquely identify the manifest across hives
-
getRoot
-
getLabels
- Returns:
- additional meta-data associated with the manifest.
-
getCachedReferences
public SortedMap<String,Manifest.Key> getCachedReferences(BHiveExecution hive, int depth, boolean allowMissing) Retrieves a set of cached dependencies. This cache is created when inserting theManifest.Manifests created by previous versions before the cache existed will returnnullalways.This cache is meant to be used internally in
ManifestRefScanOperationonly, not directly by business logic.- Parameters:
hive- used to verify existence of referenced manifests.depth- up to which depth references should be returned.allowMissing- whether it is acceptable to have references to missing manifests.- Returns:
- all referenced
Manifests if cached information is available,nullotherwise.
-
compareTo
- Specified by:
compareToin interfaceComparable<Manifest>
-
toString
-
hashCode
@Generated("Eclipse") public int hashCode() -
equals
-