Class ExportAuditConsumerWorker
- java.lang.Object
-
- com.evolveum.midpoint.ninja.action.worker.BaseWorker<O,T>
-
- com.evolveum.midpoint.ninja.action.worker.AbstractWriterConsumerWorker<ExportAuditOptions,AuditEventRecordType>
-
- com.evolveum.midpoint.ninja.action.audit.ExportAuditConsumerWorker
-
- All Implemented Interfaces:
Runnable
public class ExportAuditConsumerWorker extends AbstractWriterConsumerWorker<ExportAuditOptions,AuditEventRecordType>
Consumer writing exported audit events to the writer (stdout or file).
-
-
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 ExportAuditConsumerWorker(NinjaContext context, ExportAuditOptions options, BlockingQueue<AuditEventRecordType> 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, AuditEventRecordType object)
-
Methods inherited from class com.evolveum.midpoint.ninja.action.worker.AbstractWriterConsumerWorker
destroy, run
-
Methods inherited from class com.evolveum.midpoint.ninja.action.worker.BaseWorker
isDone, isWorkersDone, markDone, shouldConsumerStop
-
-
-
-
Constructor Detail
-
ExportAuditConsumerWorker
public ExportAuditConsumerWorker(NinjaContext context, ExportAuditOptions options, BlockingQueue<AuditEventRecordType> queue, OperationStatus operation)
-
-
Method Detail
-
init
protected void init()
- Overrides:
init
in classAbstractWriterConsumerWorker<ExportAuditOptions,AuditEventRecordType>
-
getProlog
protected String getProlog()
- Specified by:
getProlog
in classAbstractWriterConsumerWorker<ExportAuditOptions,AuditEventRecordType>
-
write
protected void write(Writer writer, AuditEventRecordType object) throws SchemaException, IOException
- Specified by:
write
in classAbstractWriterConsumerWorker<ExportAuditOptions,AuditEventRecordType>
- Throws:
SchemaException
IOException
-
getEpilog
protected String getEpilog()
- Specified by:
getEpilog
in classAbstractWriterConsumerWorker<ExportAuditOptions,AuditEventRecordType>
-
-