Class RemediationOperation
java.lang.Object
org.eclipse.equinox.p2.operations.ProfileChangeOperation
org.eclipse.equinox.p2.operations.RemediationOperation
- All Implemented Interfaces:
- IProfileChangeJob
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the p2 team.
- Since:
- 2.3
- Restriction:
- 
Constructor SummaryConstructorsConstructorDescriptionRemediationOperation(ProvisioningSession session, IProfileChangeRequest iProfileChangeRequest) RemediationOperation(ProvisioningSession session, IProfileChangeRequest originalRequest, RemedyConfig[] remedyConfigs) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcomputeProfileChangeRequest(MultiStatus status, IProgressMonitor monitor) Compute the profile change request for this operation, adding any relevant intermediate status to the supplied status.org.eclipse.equinox.internal.p2.director.ProfileChangeRequestgetProvisioningJob(IProgressMonitor monitor) Return a provisioning job that can be used to perform the resolved operation.protected StringReturn an appropriate name for the provisioning job.Return a status indicating the result of resolving this operation.protected StringReturn an appropriate name for the resolution job.voidsetCurrentRemedy(Remedy currentRemedy) Methods inherited from class org.eclipse.equinox.p2.operations.ProfileChangeOperationgetProfileChangeRequest, getProfileId, getProvisioningContext, getProvisioningPlan, getResolutionDetails, getResolutionDetails, getResolveJob, hasResolved, prepareToResolve, resolveModal, setProfileId, setProvisioningContext, updateJobProvisioningContexts
- 
Constructor Details- 
RemediationOperationpublic RemediationOperation(ProvisioningSession session, IProfileChangeRequest iProfileChangeRequest) 
- 
RemediationOperationpublic RemediationOperation(ProvisioningSession session, IProfileChangeRequest originalRequest, RemedyConfig[] remedyConfigs) 
 
- 
- 
Method Details- 
getRemedyConfigs
- 
getCurrentRemedy
- 
setCurrentRemedy
- 
bestSolutionChangingTheRequest
- 
bestSolutionChangingWhatIsInstalled
- 
getRemedies
- 
computeProfileChangeRequestDescription copied from class:ProfileChangeOperationCompute the profile change request for this operation, adding any relevant intermediate status to the supplied status.- Specified by:
- computeProfileChangeRequestin class- ProfileChangeOperation
- Parameters:
- status- a multi-status to be used to add relevant status. If a profile change request cannot be computed for any reason, a status should be added to explain the problem.
- monitor- the progress monitor to use for computing the profile change request
 
- 
getResolveJobNameDescription copied from class:ProfileChangeOperationReturn an appropriate name for the resolution job.- Specified by:
- getResolveJobNamein class- ProfileChangeOperation
- Returns:
- the resolution job name.
 
- 
getProvisioningJobNameDescription copied from class:ProfileChangeOperationReturn an appropriate name for the provisioning job.- Specified by:
- getProvisioningJobNamein class- ProfileChangeOperation
- Returns:
- the provisioning job name.
 
- 
getProvisioningJobDescription copied from class:ProfileChangeOperationReturn a provisioning job that can be used to perform the resolved operation. The job is created using the default values associated with a new job. It is up to clients to configure the priority of the job and set any appropriate properties, such asJob.setUser(boolean),Job.setSystem(boolean), orJob.setProperty(QualifiedName, Object), before scheduling it.- Overrides:
- getProvisioningJobin class- ProfileChangeOperation
- Parameters:
- monitor- a progress monitor that should be used to report the job's progress in addition to the standard job progress reporting. Can be- null. If provided, this monitor will be called from a background thread.
- Returns:
- a job that can be used to perform the provisioning operation.  This may be nullif the operation has not been resolved, or if a plan could not be obtained when attempting to resolve. If the job is null and the operation has been resolved, then the resolution result will explain the problem.
- See Also:
 
- 
getOriginalRequestpublic org.eclipse.equinox.internal.p2.director.ProfileChangeRequest getOriginalRequest()
- 
getResolutionResultDescription copied from class:ProfileChangeOperationReturn a status indicating the result of resolving this operation. Anullreturn indicates that resolving has not occurred yet.- Overrides:
- getResolutionResultin class- ProfileChangeOperation
- Returns:
- the status of the resolution, or nullif resolution has not yet occurred.
 
 
-