Class Manifest

java.lang.Object
io.bdeploy.bhive.model.Manifest
All Implemented Interfaces:
Serializable, Comparable<Manifest>

public class Manifest extends Object implements 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:
  • Method Details

    • getKey

      public Manifest.Key getKey()
      Returns:
      the manifest key used to uniquely identify the manifest across hives
    • getRoot

      public ObjectId getRoot()
      Returns:
      the ObjectId of the root Tree. Always references a Tree.
    • getLabels

      public Map<String,String> 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 the Manifest. Manifests created by previous versions before the cache existed will return null always.

      This cache is meant to be used internally in ManifestRefScanOperation only, 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, null otherwise.
    • compareTo

      public int compareTo(Manifest o)
      Specified by:
      compareTo in interface Comparable<Manifest>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      @Generated("Eclipse") public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      @Generated("Eclipse") public boolean equals(Object obj)
      Overrides:
      equals in class Object