Interface IProvisioningPlan
- Since:
- 2.0
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds an installable unit to the plan.Returns the proposed set of installable units to be added to the profile.Returns the provisioning context in which this plan was created.Returns the set of IUs that will constitute the profile if the plan is executed successfully.Returns a plan describing the proposed set of changes to the provisioning infrastructure required by this plan.Returns the profile that this plan will operate on.Returns the proposed set of installable units to be removed from this profile.Returns the overall plan status.booleanisEmpty()Returnstrueif the plan contains no operations,falseotherwise.voidRemoves an installable unit from the plan.voidsetFuturePlan(IQueryable<IInstallableUnit> futureState) Sets the value that is returned by the method getFutureState.voidsetInstallableUnitProfileProperty(IInstallableUnit iu, String name, String value) Adds a profile property corresponding to the given installable unit to the plan.voidsetInstallerPlan(IProvisioningPlan installerPlan) Sets the installer plan for this plan.voidsetProfileProperty(String name, String value) Sets a profile property in the plan.voidSets the overall plan status, describing whether the planner constructing this plan believes it will install successfully, or whether it contains errors or the plan computation has been canceled.voidAdds an instruction to replace one installable unit in the profile with another.
- 
Method Details- 
getAdditionsIQueryable<IInstallableUnit> getAdditions()Returns the proposed set of installable units to be added to the profile.- Returns:
- The proposed profile additions
 
- 
getContextProvisioningContext getContext()Returns the provisioning context in which this plan was created.- Returns:
- The plan's provisioning context
 
- 
getInstallerPlanIProvisioningPlan getInstallerPlan()Returns a plan describing the proposed set of changes to the provisioning infrastructure required by this plan. The installer changes must be performed before this plan can be successfully executed.- Returns:
- The installer plan.
 
- 
getProfileIProfile getProfile()Returns the profile that this plan will operate on.- Returns:
- The target profile for this plan
 
- 
getFutureStateIQueryable<IInstallableUnit> getFutureState()Returns the set of IUs that will constitute the profile if the plan is executed successfully.- Returns:
- The set of the IUs that will constitute the profile after the plan is executed successfully, or @null if the plan is in error or the value has not been set.
- Since:
- 2.2
 
- 
getRemovalsIQueryable<IInstallableUnit> getRemovals()Returns the proposed set of installable units to be removed from this profile.- Returns:
- The proposed profile removals.
 
- 
getStatusIStatus getStatus()Returns the overall plan status. The severity of this status indicates whether the plan can be successfully executed or not:- A status of IStatus.OKindicates that the plan can be executed successfully.
- A status of IStatus.INFOorIStatus.WARNINGindicates that the plan can be executed but may cause problems.
- A status of IStatus.ERRORindicates that the plan cannot be executed successfully.
- A status of IStatus.CANCELindicates that the plan computation was canceled and is incomplete. A canceled plan cannot be executed.
 - Returns:
- The overall plan status.
 
- A status of 
- 
isEmptyboolean isEmpty()Returnstrueif the plan contains no operations,falseotherwise.- Returns:
- trueif the plan contains no operations,- falseotherwise.
 
- 
addInstallableUnitAdds an installable unit to the plan. This will cause the given installable unit to be installed into the profile when this plan is executed by the engine.This is an advanced operation that should only be performed by clients crafting their own custom plan. Most clients should instead use a planner service to construct a valid plan based on a profile change request. - Parameters:
- iu- the installable unit to add
 
- 
removeInstallableUnitRemoves an installable unit from the plan. This will cause the given installable unit to be remove from the profile when this plan is executed by the engine.This is an advanced operation that should only be performed by clients crafting their own custom plan. Most clients should instead use a planner service to construct a valid plan based on a profile change request. - Parameters:
- iu- the installable unit to add
 
- 
setInstallableUnitProfilePropertyAdds a profile property corresponding to the given installable unit to the plan. This will cause the given installable unit property to be installed into the profile when this plan is executed by the engine.This is an advanced operation that should only be performed by clients crafting their own custom plan. Most clients should instead use a planner service to construct a valid plan based on a profile change request. - Parameters:
- iu- the installable unit to set a property for
- name- the property name
- value- the property value
 
- 
setInstallerPlanSets the installer plan for this plan. The installer plan describes the set of changes that must be made to the provisioning agent in order for this plan to execute successfully.This is an advanced operation that should only be performed by clients crafting their own custom plan. Most clients should instead use a planner service to construct a valid plan based on a profile change request. - Parameters:
- installerPlan- the plan describing changes to the provisioning agent
 
- 
setProfilePropertySets a profile property in the plan. This will cause the given property to be added to the profile when this plan is executed by the engine.This is an advanced operation that should only be performed by clients crafting their own custom plan. Most clients should instead use a planner service to construct a valid plan based on a profile change request. - Parameters:
- name- the profile property name
- value- the profile property value
 
- 
setStatusSets the overall plan status, describing whether the planner constructing this plan believes it will install successfully, or whether it contains errors or the plan computation has been canceled.This is an advanced operation that should only be performed by clients crafting their own custom plan. Most clients should instead use a planner service to construct a valid plan based on a profile change request. - Parameters:
- status- the plan status
 
- 
updateInstallableUnitAdds an instruction to replace one installable unit in the profile with another. This will cause the 'from' installable unit property to be uninstalled from the profile and the 'to' installable unit to be added to the profile when this plan is executed by the engine.This is an advanced operation that should only be performed by clients crafting their own custom plan. Most clients should instead use a planner service to construct a valid plan based on a profile change request. - Parameters:
- from- the installable unit to remove
- to- the installable unit to add
 
- 
setFuturePlanSets the value that is returned by the method getFutureState. Note that this method is a simple setter and will not cause any update to the other fields of this object. This field can be set to @null.- Parameters:
- futureState- A set of IU representing the future plan if the plan is executed successfully.
- Since:
- 2.2
 
 
-