Class ProfileModificationJob
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.equinox.p2.operations.ProvisioningJob
org.eclipse.equinox.p2.operations.ProfileModificationJob
- All Implemented Interfaces:
- Comparable<org.eclipse.core.internal.jobs.InternalJob>,- IAdaptable,- IProfileChangeJob
A job that modifies a profile according to a specified provisioning plan.
- Since:
- 2.0
- Restriction:
- This class is not intended to be subclassed by clients.
- 
Field SummaryFields inherited from class org.eclipse.equinox.p2.operations.ProvisioningJobRESTART_NONE, RESTART_ONLY, RESTART_OR_APPLYFields inherited from class org.eclipse.core.runtime.jobs.JobASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITINGFields inherited from class org.eclipse.core.internal.jobs.InternalJobmanager
- 
Constructor SummaryConstructorsConstructorDescriptionProfileModificationJob(String name, ProvisioningSession session, String profileId, IProvisioningPlan plan, ProvisioningContext context) Create a job that will update a profile according to the specified provisioning plan.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the string id of the profile involved in this job.intReturn the restart policy that is appropriate for this job.runModal(IProgressMonitor monitor) Perform the specific work involved in running this job in the current thread.voidsetPhaseSet(IPhaseSet phaseSet) Set the phase set to be used when running the provisioning plan.voidsetRestartPolicy(int policy) Set the restart policy that describes whether restart is needed after performing this job.voidsetTaskName(String label) Sets the top level task name for progress when running this operation.Methods inherited from class org.eclipse.equinox.p2.operations.ProvisioningJobgetErrorStatus, getSession, run, setAdditionalProgressMonitorMethods inherited from class org.eclipse.core.runtime.jobs.JobaddJobChangeListener, belongsTo, cancel, canceling, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRuleMethods inherited from class org.eclipse.core.internal.jobs.InternalJobcompareToMethods inherited from class org.eclipse.core.runtime.PlatformObjectgetAdapter
- 
Constructor Details- 
ProfileModificationJobpublic ProfileModificationJob(String name, ProvisioningSession session, String profileId, IProvisioningPlan plan, ProvisioningContext context) Create a job that will update a profile according to the specified provisioning plan.- Parameters:
- name- the name of the job
- session- the provisioning session to use to obtain provisioning services
- profileId- the id of the profile to be altered
- plan- the provisioning plan describing how the profile is to be altered
- context- the provisioning context describing how the operation is to be performed
 
 
- 
- 
Method Details- 
setPhaseSetSet the phase set to be used when running the provisioning plan. This method need only be used when the default phase set is not sufficient. For example, clients could use this method to perform a sizing or to download artifacts without provisioning them.- Parameters:
- phaseSet- the provisioning phases to be run during provisioning.
 
- 
getProfileIdDescription copied from interface:IProfileChangeJobReturn the string id of the profile involved in this job.- Specified by:
- getProfileIdin interface- IProfileChangeJob
- Returns:
- the id of the profile
 
- 
runModalDescription copied from class:ProvisioningJobPerform the specific work involved in running this job in the current thread. This method can be called directly by clients, or in the course of running the job in the background.- Specified by:
- runModalin class- ProvisioningJob
- Parameters:
- monitor- the progress monitor to use for the operation
- Returns:
- a status indicating the result of the operation.
 
- 
setTaskNameSets the top level task name for progress when running this operation.- Parameters:
- label- the label to be used for the task name
 
- 
getRestartPolicypublic int getRestartPolicy()Description copied from class:ProvisioningJobReturn the restart policy that is appropriate for this job.- Overrides:
- getRestartPolicyin class- ProvisioningJob
- Returns:
- a constant indicating the restart policy
- See Also:
 
- 
setRestartPolicypublic void setRestartPolicy(int policy) Set the restart policy that describes whether restart is needed after performing this job. This policy will be consulted when the profile being changed is the profile of the running system.- Parameters:
- policy- an integer describing the restart policy
- See Also:
 
 
-