Class ParallelProvisioner
- java.lang.Object
-
- com.identityworksllc.iiq.common.threads.ParallelProvisioner
-
public class ParallelProvisioner extends Object
A class implementing parallel provisioner execution.Each provisioning operation will run in its own thread, resulting in either a ProvisioningProject or some exception. The
Maybe
class is used to encapsulate the state, containing either a valid output or an exception, for each item.The
Provisioner
will be invoked withdisableRetryRequest
set totrue
, so the caller is responsible for detecting and retrying any provisioning failures.- Since:
- 2024-09-26
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParallelProvisioner.ParallelProvisioningTask
-
Constructor Summary
Constructors Constructor Description ParallelProvisioner(int threads)
Constructs a new parallel provisioner with the given number of threads and the default set of arguments.ParallelProvisioner(Map<String,Object> arguments, int threads)
Constructs a new parallel provisioner with the given number of threads and the given set of arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ParallelProvisioner.ParallelProvisioningTask>
provisionPlans(List<sailpoint.object.ProvisioningPlan> plans)
Provisions the given set of plans in the thread pool.
-
-
-
Constructor Detail
-
ParallelProvisioner
public ParallelProvisioner(int threads)
Constructs a new parallel provisioner with the given number of threads and the default set of arguments.- Parameters:
threads
- The number of threads
-
ParallelProvisioner
public ParallelProvisioner(Map<String,Object> arguments, int threads)
Constructs a new parallel provisioner with the given number of threads and the given set of arguments.- Parameters:
threads
- The number of threadsarguments
- The arguments passed to the Provisioner in each thread
-
-
Method Detail
-
provisionPlans
public List<ParallelProvisioner.ParallelProvisioningTask> provisionPlans(List<sailpoint.object.ProvisioningPlan> plans)
Provisions the given set of plans in the thread pool.- Parameters:
plans
- The plans to provision- Returns:
- A set of
ParallelProvisioner.ParallelProvisioningTask
objects, each representing the (future) outcome of one plan execution
-
-