Class PersistentManifestClassification<T>

java.lang.Object
io.bdeploy.bhive.meta.PersistentManifestClassification<T>
Type Parameters:
T - the classification type which is stored per manifest key

public class PersistentManifestClassification<T> extends Object
  • Constructor Details

  • Method Details

    • loadAndUpdate

      public void loadAndUpdate(Set<Manifest.Key> keys)
      Loads an existing persistent classification and classifies all given Manifest.Keys, potentially requiring to load Manifests to be able to do so if no information is stored (yet).

      Callers need to take care that the given set of Manifest.Keys represents the logically same set. Any Manifest.Key in the stored classification which is no longer in the given set will be removed from the persistent classification.

      Parameters:
      keys - the keys to classify.
    • getClassifications

      public SortedMap<Manifest.Key,T> getClassifications()