Class BaseWorker<O,T>
java.lang.Object
com.evolveum.midpoint.ninja.action.worker.BaseWorker<O,T>
- Type Parameters:
O
- options classT
- type of objects in the queue
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AbstractWriterConsumerWorker
,ExportAuditProducerWorker
,ExportMiningProducerWorker
,ImportAuditConsumerWorker
,ImportProducerWorker
,ImportRepositoryConsumerWorker
,ProgressReporterWorker
,SearchProducerWorker
,UpgradeObjectsConsumerWorker
Base worker class that either produces or consumes
BaseWorker
object for/from queue.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected NinjaContext
protected OperationStatus
protected O
protected BlockingQueue<T>
-
Constructor Summary
ConstructorDescriptionBaseWorker
(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation) BaseWorker
(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation, List<? extends BaseWorker<?, ?>> workers) -
Method Summary
-
Field Details
-
CONSUMER_POLL_TIMEOUT
public static final int CONSUMER_POLL_TIMEOUT- See Also:
-
queue
-
context
-
options
-
operation
-
-
Constructor Details
-
BaseWorker
public BaseWorker(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation) -
BaseWorker
public BaseWorker(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation, List<? extends BaseWorker<?, ?>> workers)
-
-
Method Details
-
shouldConsumerStop
protected boolean shouldConsumerStop() -
isDone
public boolean isDone() -
markDone
public void markDone() -
isWorkersDone
protected boolean isWorkersDone()
-