Class Deployer.DeploymentState

  • Enclosing class:
    Deployer

    public static class Deployer.DeploymentState
    extends Object

    Representation of the state of system from the point of view of installed bundles and available features

    • Field Detail

      • state

        public State state
        Current State of features service
      • serviceBundle

        public org.osgi.framework.Bundle serviceBundle
        A Bundle providing FeaturesService
      • configadminBundle

        public org.osgi.framework.Bundle configadminBundle
        A Bundle providing ConfigurationAdmin service
      • initialBundleStartLevel

        public int initialBundleStartLevel
        FrameworkStartLevel.getInitialBundleStartLevel()
      • currentStartLevel

        public int currentStartLevel
        FrameworkStartLevel.getStartLevel()
      • bundles

        public Map<Long,​org.osgi.framework.Bundle> bundles
        bundle-id -> bundle for all currently installed bundles
    • Constructor Detail

      • DeploymentState

        public DeploymentState()
    • Method Detail

      • featuresByName

        public Map<String,​List<Feature>> featuresByName()
        Returns all features indexed by their name. For each name we have collection of features for different versions.
        Returns:
      • featuresById

        public Map<String,​Feature> featuresById()
        Returns all features indexed by their id.
        Returns:
      • partitionFeatures

        public void partitionFeatures​(Collection<Feature> featuresList)
        Sets a list of features and stores it as map of features where the key is name and value is a list of features with different versions.
        Parameters:
        featuresList -