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
ConstructorDescriptionExportAuditConsumerWorker
(NinjaContext context, ExportAuditOptions options, BlockingQueue<AuditEventRecordType> queue, OperationStatus operation) -
Method Summary
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 Details
-
ExportAuditConsumerWorker
public ExportAuditConsumerWorker(NinjaContext context, ExportAuditOptions options, BlockingQueue<AuditEventRecordType> queue, OperationStatus operation)
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classAbstractWriterConsumerWorker<ExportAuditOptions,
AuditEventRecordType>
-
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
- Specified by:
getEpilog
in classAbstractWriterConsumerWorker<ExportAuditOptions,
AuditEventRecordType>
-