Class Deployer.DeploymentRequest
- java.lang.Object
-
- org.apache.karaf.features.internal.service.Deployer.DeploymentRequest
-
- Enclosing class:
- Deployer
public static class Deployer.DeploymentRequest extends Object
A request to change current
Deployer.DeploymentState
of systemrequirements
specify target set of system requirements. If new features are installed, requirements should include currently installed features and new ones. If features are being uninstalled, requirements should include currently installed features minus the ones that are removed.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
autoRefresh
Indication if deployer refresh automatically bundle (true), or not (false)String
bundleUpdateRange
A bnd macro to find update'able version range for bundle versions (e.g., to determine whether to install or update a bundleString
featureResolutionRange
A bnd macro that changes feature version into a version range.org.osgi.service.repository.Repository
globalRepository
AdditionalRepository
that'll be used to resolve unresolved, non-optional requirements if they're not resolved against currentEnumSet<FeaturesService.Option>
options
Deployment optionsString
outputFile
File to store result of deploymentMap<String,Set<String>>
requirements
Target/desired set of requirements per regionFeaturesService.ServiceRequirementsBehavior
serviceRequirements
Indication of how to handle requirements fromosgi.service
namespaceMap<String,Map<String,FeatureState>>
stateChanges
Target/desired set of features state per regionFeaturesService.SnapshotUpdateBehavior
updateSnaphots
Indication of when to update bundles (or leave them as they are currently installed)
-
Constructor Summary
Constructors Constructor Description DeploymentRequest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Deployer.DeploymentRequest
defaultDeploymentRequest()
Prepare standard, empty DeploymentRequest, where feature versions are taken literally (no ranges) and bundle updates use natural range to determine between install and update (update on micro digit in version, e.g.,2.1.0
->2.1.2
, but not2.1.2
->2.2.0
).
-
-
-
Field Detail
-
featureResolutionRange
public String featureResolutionRange
A bnd macro that changes feature version into a version range.
-
serviceRequirements
public FeaturesService.ServiceRequirementsBehavior serviceRequirements
Indication of how to handle requirements fromosgi.service
namespace
-
bundleUpdateRange
public String bundleUpdateRange
A bnd macro to find update'able version range for bundle versions (e.g., to determine whether to install or update a bundle
-
updateSnaphots
public FeaturesService.SnapshotUpdateBehavior updateSnaphots
Indication of when to update bundles (or leave them as they are currently installed)
-
autoRefresh
public boolean autoRefresh
Indication if deployer refresh automatically bundle (true), or not (false)
-
globalRepository
public org.osgi.service.repository.Repository globalRepository
AdditionalRepository
that'll be used to resolve unresolved, non-optional requirements if they're not resolved against current
-
requirements
public Map<String,Set<String>> requirements
Target/desired set of requirements per region
-
stateChanges
public Map<String,Map<String,FeatureState>> stateChanges
Target/desired set of features state per region
-
options
public EnumSet<FeaturesService.Option> options
Deployment options
-
outputFile
public String outputFile
File to store result of deployment
-
-
Method Detail
-
defaultDeploymentRequest
public static Deployer.DeploymentRequest defaultDeploymentRequest()
Prepare standard, empty DeploymentRequest, where feature versions are taken literally (no ranges) and bundle updates use natural range to determine between install and update (update on micro digit in version, e.g.,2.1.0
->2.1.2
, but not2.1.2
->2.2.0
).- Returns:
-
-