Class ParallelProvisioner.ParallelProvisioningTask

    • Constructor Detail

      • ParallelProvisioningTask

        public ParallelProvisioningTask​(sailpoint.object.ProvisioningPlan plan,
                                        Future<Maybe<sailpoint.object.ProvisioningProject>> projectFuture)
        Constructs a n ew ParallelProvisioningTask for the given pair of plan and background executor.
        Parameters:
        plan - The plan
        projectFuture - The project future, from ParallelProvisioner.ParallelProvisioningWorker
    • Method Detail

      • cancel

        public boolean cancel()
        Attempts to cancel the running background task
        Returns:
        Attempts to cancel the running background task
      • getPlan

        public sailpoint.object.ProvisioningPlan getPlan()
        Gets the original ProvisioningPlan associated with this outcome
        Returns:
        The provisioning plan
      • getProject

        public Optional<sailpoint.object.ProvisioningProject> getProject()
                                                                  throws Exception
        If the task has completed, returns an Optional containing the ProvisioningProject, which itself will contain the outcome of provisioning.

        If the task has not completed, or was canceled, returns an empty Optional. If the task completed, but failed, re-throws the exception.

        Returns:
        An Optional ProvisioningProject, as described above
        Throws:
        Exception - if the execution finished but failed, or if there is an error retrieving the outcome
      • isDone

        public boolean isDone()
        Returns true if Future.isDone() returns true.
        Returns:
        True if the background task is either done or canceled