Class ExportConsumerWorker
- java.lang.Object
-
- com.evolveum.midpoint.ninja.action.worker.BaseWorker<O,T>
-
- com.evolveum.midpoint.ninja.action.worker.AbstractWriterConsumerWorker<ExportOptions,ObjectType>
-
- com.evolveum.midpoint.ninja.action.worker.ExportConsumerWorker
-
- All Implemented Interfaces:
Runnable
public class ExportConsumerWorker extends AbstractWriterConsumerWorker<ExportOptions,ObjectType>
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 ExportConsumerWorker(NinjaContext context, ExportOptions options, BlockingQueue<ObjectType> queue, OperationStatus operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getEpilog()
protected String
getProlog()
protected void
init()
protected void
write(Writer writer, ObjectType object)
-
Methods inherited from class com.evolveum.midpoint.ninja.action.worker.AbstractWriterConsumerWorker
run
-
Methods inherited from class com.evolveum.midpoint.ninja.action.worker.BaseWorker
isDone, isWorkersDone, markDone, shouldConsumerStop
-
-
-
-
Constructor Detail
-
ExportConsumerWorker
public ExportConsumerWorker(NinjaContext context, ExportOptions options, BlockingQueue<ObjectType> queue, OperationStatus operation)
-
-
Method Detail
-
init
protected void init()
- Specified by:
init
in classAbstractWriterConsumerWorker<ExportOptions,ObjectType>
-
getProlog
protected String getProlog()
- Specified by:
getProlog
in classAbstractWriterConsumerWorker<ExportOptions,ObjectType>
-
write
protected void write(Writer writer, ObjectType object) throws SchemaException, IOException
- Specified by:
write
in classAbstractWriterConsumerWorker<ExportOptions,ObjectType>
- Throws:
SchemaException
IOException
-
getEpilog
protected String getEpilog()
- Specified by:
getEpilog
in classAbstractWriterConsumerWorker<ExportOptions,ObjectType>
-
-