Class InstallOperation

  • All Implemented Interfaces:
    IProfileChangeJob
    Direct Known Subclasses:
    SynchronizeOperation

    public class InstallOperation
    extends ProfileChangeOperation
    An InstallOperation describes an operation that installs IInstallableUnits into a profile. The following snippet shows how one might use an InstallOperation to perform a synchronous resolution and then kick off an install in the background:
     InstallOperation op = new InstallOperation(session, new IInstallableUnit [] { myIU });
     IStatus result = op.resolveModal(monitor);
     if (result.isOK()) {
       op.getProvisioningJob(monitor).schedule();
     }
     
    Since:
    2.0
    See Also:
    ProfileChangeOperation
    Restriction:
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • InstallOperation

        public InstallOperation​(ProvisioningSession session,
                                Collection<IInstallableUnit> toInstall)
        Create an install operation on the specified provisioning session that installs the supplied IInstallableUnits. Unless otherwise specified, the operation will be associated with the currently running profile.
        Parameters:
        session - the session to use for obtaining provisioning services
        toInstall - the IInstallableUnits to be installed into the profile.