Class VerifyConsumerWorker
- java.lang.Object
-
- com.evolveum.midpoint.ninja.action.worker.BaseWorker<O,T>
-
- com.evolveum.midpoint.ninja.action.worker.AbstractWriterConsumerWorker<VerifyOptions,ObjectType>
-
- com.evolveum.midpoint.ninja.action.worker.VerifyConsumerWorker
-
- All Implemented Interfaces:
Runnable
public class VerifyConsumerWorker extends AbstractWriterConsumerWorker<VerifyOptions,ObjectType>
TODO from design point of view handling of main writer and deltaWriter is just nasty. Fix this. Currently it was moved to VerifyReporter, still not very nice.- Author:
- Radovan Semancik
-
-
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 VerifyConsumerWorker(NinjaContext context, VerifyOptions options, BlockingQueue<ObjectType> queue, OperationStatus operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
protected String
getEpilog()
protected String
getProlog()
VerifyResult
getResult()
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
-
VerifyConsumerWorker
public VerifyConsumerWorker(NinjaContext context, VerifyOptions options, BlockingQueue<ObjectType> queue, OperationStatus operation)
-
-
Method Detail
-
init
protected void init()
- Overrides:
init
in classAbstractWriterConsumerWorker<VerifyOptions,ObjectType>
-
destroy
public void destroy()
- Overrides:
destroy
in classAbstractWriterConsumerWorker<VerifyOptions,ObjectType>
-
getProlog
protected String getProlog()
- Specified by:
getProlog
in classAbstractWriterConsumerWorker<VerifyOptions,ObjectType>
-
getEpilog
protected String getEpilog()
- Specified by:
getEpilog
in classAbstractWriterConsumerWorker<VerifyOptions,ObjectType>
-
write
protected void write(Writer writer, ObjectType object) throws IOException
- Specified by:
write
in classAbstractWriterConsumerWorker<VerifyOptions,ObjectType>
- Throws:
IOException
-
getResult
public VerifyResult getResult()
-
-