Class VerifyAuditConsumerWorker
- java.lang.Object
-
- com.evolveum.midpoint.ninja.action.worker.BaseWorker<O,T>
-
- com.evolveum.midpoint.ninja.action.worker.AbstractWriterConsumerWorker<VerifyAuditOptions,AuditEventRecordType>
-
- com.evolveum.midpoint.ninja.action.audit.VerifyAuditConsumerWorker
-
- All Implemented Interfaces:
Runnable
public class VerifyAuditConsumerWorker extends AbstractWriterConsumerWorker<VerifyAuditOptions,AuditEventRecordType>
Consumer writing exported audit events to the writer (stdout or file).
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>
REPORT_HEADER
-
Fields inherited from class com.evolveum.midpoint.ninja.action.worker.BaseWorker
CONSUMER_POLL_TIMEOUT, context, operation, options, queue
-
-
Constructor Summary
Constructors Constructor Description VerifyAuditConsumerWorker(NinjaContext context, VerifyAuditOptions options, BlockingQueue<AuditEventRecordType> queue, OperationStatus operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getEpilog()
long
getErrorCount()
String
getProlog()
long
getRecordsWithIssue()
long
getRecordsWithIssueCount()
long
getUnknownCount()
long
getWarningCount()
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
-
VerifyAuditConsumerWorker
public VerifyAuditConsumerWorker(NinjaContext context, VerifyAuditOptions options, BlockingQueue<AuditEventRecordType> queue, OperationStatus operation)
-
-
Method Detail
-
init
protected void init()
- Overrides:
init
in classAbstractWriterConsumerWorker<VerifyAuditOptions,AuditEventRecordType>
-
write
protected void write(Writer writer, AuditEventRecordType object) throws SchemaException, IOException
- Specified by:
write
in classAbstractWriterConsumerWorker<VerifyAuditOptions,AuditEventRecordType>
- Throws:
SchemaException
IOException
-
getProlog
public String getProlog()
- Specified by:
getProlog
in classAbstractWriterConsumerWorker<VerifyAuditOptions,AuditEventRecordType>
-
getEpilog
protected String getEpilog()
- Specified by:
getEpilog
in classAbstractWriterConsumerWorker<VerifyAuditOptions,AuditEventRecordType>
-
getRecordsWithIssueCount
public long getRecordsWithIssueCount()
-
getRecordsWithIssue
public long getRecordsWithIssue()
-
getUnknownCount
public long getUnknownCount()
-
getErrorCount
public long getErrorCount()
-
getWarningCount
public long getWarningCount()
-
-