public class ProfileModificationJob extends ProvisioningJob implements IProfileChangeJob
RESTART_NONE, RESTART_ONLY, RESTART_OR_APPLY
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getProfileId()
Return the string id of the profile involved in this job.
|
int |
getRestartPolicy()
Return the restart policy that is appropriate for this job.
|
IStatus |
runModal(IProgressMonitor monitor)
Perform the specific work involved in running this job in
the current thread.
|
void |
setPhaseSet(IPhaseSet phaseSet)
Set the phase set to be used when running the provisioning plan.
|
void |
setRestartPolicy(int policy)
Set the restart policy that describes whether restart is needed after
performing this job.
|
void |
setTaskName(String label)
Sets the top level task name for progress when running this operation.
|
getErrorStatus, getSession, run, setAdditionalProgressMonitor
addJobChangeListener, belongsTo, cancel, canceling, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
getAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAdapter
public ProfileModificationJob(String name, ProvisioningSession session, String profileId, IProvisioningPlan plan, ProvisioningContext context)
name
- the name of the jobsession
- the provisioning session to use to obtain provisioning servicesprofileId
- the id of the profile to be alteredplan
- the provisioning plan describing how the profile is to be alteredcontext
- the provisioning context describing how the operation is to be performedpublic void setPhaseSet(IPhaseSet phaseSet)
phaseSet
- the provisioning phases to be run during provisioning.public String getProfileId()
IProfileChangeJob
getProfileId
in interface IProfileChangeJob
public IStatus runModal(IProgressMonitor monitor)
ProvisioningJob
runModal
in class ProvisioningJob
monitor
- the progress monitor to use for the operationpublic void setTaskName(String label)
label
- the label to be used for the task namepublic int getRestartPolicy()
ProvisioningJob
getRestartPolicy
in class ProvisioningJob
ProvisioningJob.RESTART_NONE
,
ProvisioningJob.RESTART_ONLY
,
ProvisioningJob.RESTART_OR_APPLY
public void setRestartPolicy(int policy)
policy
- an integer describing the restart policyProvisioningJob.RESTART_NONE
,
ProvisioningJob.RESTART_ONLY
,
ProvisioningJob.RESTART_OR_APPLY
Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.