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,ExportMiningConsumerWorker,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 voiddestroy()protected abstract StringgetEpilog()protected abstract StringgetProlog()protected voidinit()voidrun()protected abstract voidwrite(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 void init()
-
destroy
protected void destroy()
-
getProlog
protected abstract String getProlog()
-
write
protected abstract void write(Writer writer, T object) throws SchemaException, IOException
- Throws:
SchemaExceptionIOException
-
getEpilog
protected abstract String getEpilog()
-
-