public final class Processors extends Object
Processor
based map-reduce reactors.
To use these functionalities license LicenseGlobals.MADFAST
must be present.Modifier and Type | Method and Description |
---|---|
static Processor |
managedProcessor(String objectName,
int pagesize,
int maxQueueSize,
SubProgressObserver po,
ExecutorService ex)
Create a managed processor.
|
static Processor |
processor(BppParameters params)
Create a processor with a parameters object.
|
static Processor |
processor(int pagesize,
int maxQueueSize,
SubProgressObserver po,
ExecutorService ex)
Create an unmanaged processor.
|
public static Processor processor(int pagesize, int maxQueueSize, SubProgressObserver po, ExecutorService ex)
pagesize
- Number of sources to bundlemaxQueueSize
- Max queue size.po
- Progress observer to track execution. Method ProgressObserver.done()
will be invoked before
encapsulated execution returnsex
- ExecutorService to use. Note that using MoreExecutors#sameThreadExecutor()
results in
sequentially consistent master thread executionpublic static Processor managedProcessor(String objectName, int pagesize, int maxQueueSize, SubProgressObserver po, ExecutorService ex)
objectName
- Object name for managementpagesize
- Number of sources to bundlemaxQueueSize
- Max queue size.po
- Progress observer to track execution. Method ProgressObserver.done()
will be invoked before
encapsulated execution returnsex
- ExecutorService to use. Note that using MoreExecutors#sameThreadExecutor()
results in
sequentially consistent master thread executionpublic static Processor processor(BppParameters params)
params
- Parameters object