Class ParallelProvisioner.ParallelProvisioningTask
- java.lang.Object
-
- com.identityworksllc.iiq.common.threads.ParallelProvisioner.ParallelProvisioningTask
-
- Enclosing class:
- ParallelProvisioner
public static class ParallelProvisioner.ParallelProvisioningTask extends Object
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()Attempts to cancel the running background tasksailpoint.object.ProvisioningPlangetPlan()Gets the original ProvisioningPlan associated with this outcomeOptional<sailpoint.object.ProvisioningProject>getProject()If the task has completed, returns anOptionalcontaining theProvisioningProject, which itself will contain the outcome of provisioning.booleanisDone()Returns true ifFuture.isDone()returns true.
-
-
-
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 planprojectFuture- The project future, fromParallelProvisioner.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
-
isDone
public boolean isDone()
Returns true ifFuture.isDone()returns true.- Returns:
- True if the background task is either done or canceled
-
-