Class ApplicationBundleLoader

java.lang.Object
com.yahoo.container.core.config.ApplicationBundleLoader

public class ApplicationBundleLoader extends Object
Manages the set of installed and active/inactive bundles. TODO: This class and the CollisionHook currently only handles a "current" and "previous" generation. In order to correctly handle rapid reconfiguration and hence multiple generations, we need to consider the graph generation number for each bundle.
Author:
gjoranv
  • Constructor Details

  • Method Details

    • activeBundlesBsnVersion

      public List<com.yahoo.jdisc.application.BsnVersion> activeBundlesBsnVersion()
      Returns bsn:version for all active bundles.
    • useBundles

      public void useBundles(List<com.yahoo.config.FileReference> newFileReferences)
      Installs the given set of bundles and updates state for which bundles and file references that are active or should be uninstalled in case of success or failure.
    • completeGeneration

      public Set<org.osgi.framework.Bundle> completeGeneration(Osgi.GenerationStatus status)
      Must be called after useBundles() to report success or failure for the latest bundle generation.