Class AbstractWriterConsumerWorker<OP extends ExportOptions>
- java.lang.Object
-
- com.evolveum.midpoint.ninja.action.worker.BaseWorker<OP,PrismObject>
-
- com.evolveum.midpoint.ninja.action.worker.AbstractWriterConsumerWorker<OP>
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ExportConsumerWorker,VerifyConsumerWorker
public abstract class AbstractWriterConsumerWorker<OP extends ExportOptions> extends BaseWorker<OP,PrismObject>
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, OP options, BlockingQueue<PrismObject> queue, OperationStatus operation)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetEpilog()protected abstract StringgetProlog()protected abstract voidinit()voidrun()protected abstract <O extends ObjectType>
voidwrite(Writer writer, PrismObject<O> object)-
Methods inherited from class com.evolveum.midpoint.ninja.action.worker.BaseWorker
isDone, isWorkersDone, markDone, shouldConsumerStop
-
-
-
-
Constructor Detail
-
AbstractWriterConsumerWorker
public AbstractWriterConsumerWorker(NinjaContext context, OP options, BlockingQueue<PrismObject> queue, OperationStatus operation)
-
-
Method Detail
-
run
public void run()
-
init
protected abstract void init()
-
getProlog
protected abstract String getProlog()
-
write
protected abstract <O extends ObjectType> void write(Writer writer, PrismObject<O> object) throws SchemaException, IOException
- Throws:
SchemaExceptionIOException
-
getEpilog
protected abstract String getEpilog()
-
-