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 StringgetEpilog()protected StringgetProlog()protected voidinit()protected voidwrite(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:
initin classAbstractWriterConsumerWorker<ExportOptions,ObjectType>
-
getProlog
protected String getProlog()
- Specified by:
getPrologin classAbstractWriterConsumerWorker<ExportOptions,ObjectType>
-
write
protected void write(Writer writer, ObjectType object) throws SchemaException, IOException
- Specified by:
writein classAbstractWriterConsumerWorker<ExportOptions,ObjectType>- Throws:
SchemaExceptionIOException
-
getEpilog
protected String getEpilog()
- Specified by:
getEpilogin classAbstractWriterConsumerWorker<ExportOptions,ObjectType>
-
-