Class AbstractWriterConsumerWorker<O extends BasicExportOptions,T>
- java.lang.Object
-
- com.evolveum.midpoint.ninja.action.worker.BaseWorker<O,T>
-
- com.evolveum.midpoint.ninja.action.worker.AbstractWriterConsumerWorker<O,T>
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ExportAuditConsumerWorker
,ExportConsumerWorker
,VerifyConsumerWorker
public abstract class AbstractWriterConsumerWorker<O extends BasicExportOptions,T> extends BaseWorker<O,T>
Created by Viliam Repan (lazyman).
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.ninja.action.worker.BaseWorker
CONSUMER_POLL_TIMEOUT, context, operation, options, queue
-
-
Constructor Summary
Constructors Constructor Description AbstractWriterConsumerWorker(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getEpilog()
protected abstract String
getProlog()
protected abstract void
init()
void
run()
protected abstract void
write(Writer writer, T object)
-
Methods inherited from class com.evolveum.midpoint.ninja.action.worker.BaseWorker
isDone, isWorkersDone, markDone, shouldConsumerStop
-
-
-
-
Constructor Detail
-
AbstractWriterConsumerWorker
public AbstractWriterConsumerWorker(NinjaContext context, O options, BlockingQueue<T> queue, OperationStatus operation)
-
-
Method Detail
-
run
public void run()
-
init
protected abstract void init()
-
getProlog
protected abstract String getProlog()
-
write
protected abstract void write(Writer writer, T object) throws SchemaException, IOException
- Throws:
SchemaException
IOException
-
getEpilog
protected abstract String getEpilog()
-
-