Class Deployer.DeploymentState
- java.lang.Object
-
- org.apache.karaf.features.internal.service.Deployer.DeploymentState
-
-
Field Summary
Fields Modifier and Type Field Description Map<Long,org.osgi.framework.Bundle>
bundles
bundle-id -> bundle for all currently installed bundlesMap<String,Set<Long>>
bundlesPerRegion
region-name -> ids for bundles installed in region (seeState.managedBundles
)org.osgi.framework.Bundle
configadminBundle
ABundle
providingConfigurationAdmin
serviceint
currentStartLevel
FrameworkStartLevel.getStartLevel()
Map<String,Map<String,Map<String,Set<String>>>>
filtersPerRegion
region-name -> connected, filtered, region-name -> filter-namespace -> filtersint
initialBundleStartLevel
FrameworkStartLevel.getInitialBundleStartLevel()
org.osgi.framework.Bundle
serviceBundle
ABundle
providingFeaturesService
State
state
CurrentState
of features service
-
Constructor Summary
Constructors Constructor Description DeploymentState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Feature>
featuresById()
Returns all features indexed by their id.Map<String,List<Feature>>
featuresByName()
Returns all features indexed by their name.void
partitionFeatures(Collection<Feature> featuresList)
Sets a list of features and stores it as map of features where the key isname
and value is a list of features with different versions.
-
-
-
Field Detail
-
serviceBundle
public org.osgi.framework.Bundle serviceBundle
ABundle
providingFeaturesService
-
configadminBundle
public org.osgi.framework.Bundle configadminBundle
ABundle
providingConfigurationAdmin
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
-
bundlesPerRegion
public Map<String,Set<Long>> bundlesPerRegion
region-name -> ids for bundles installed in region (seeState.managedBundles
)
-
-
Method Detail
-
featuresByName
public Map<String,List<Feature>> featuresByName()
Returns all features indexed by their name. For each name we have collection offeatures
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 isname
and value is a list of features with different versions.- Parameters:
featuresList
-
-
-