Package org.ojalgo.data.batch
Class BatchManager
java.lang.Object
org.ojalgo.data.batch.BatchManager
When you're going to instantiate multiple
BatchNode
:s and you want them to share some properties,
this is a convenient alternative. Just create a BatchManager
, configure it, and use it to create
the BatchNode.Builder
:s using newNodeBuilder(String, DataInterpreter)
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final File
private ExecutorService
private Integer
private IntSupplier
private Integer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose of all files associated with nodes instantiated from this manager.executor
(ExecutorService executor) fragmentation
(int fragmentation) <T> BatchNode.Builder
<T> newNodeBuilder
(String nodeName, DataInterpreter<T> dataInterpreter) parallelism
(int parallelism) parallelism
(IntSupplier parallelism) queue
(int capacity)
-
Field Details
-
myBatchRootDirectory
-
myExecutor
-
myFragmentation
-
myParallelism
-
myQueueCapacity
-
-
Constructor Details
-
BatchManager
-
-
Method Details
-
dispose
public void dispose()Dispose of all files associated with nodes instantiated from this manager. It's recommended that you callBatchNode.dispose()
on the individual nodes as you're done with them. This is just a convenient alternative to dispose of multiple (all) nodes simultaneously.- See Also:
-
executor
- See Also:
-
fragmentation
- See Also:
-
newNodeBuilder
-
parallelism
- See Also:
-
parallelism
- See Also:
-
queue
- See Also:
-