public class CrawlerHandler extends AuditEventHandlerAdapter
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_NAME_ALERT_TABLE_SUFFIX
Audit spec property used to capture the alert table suffix.
|
static String |
PROPERTY_NAME_AUDIT_EVENT_BATCH_SIZE
Audit spec property used to capture audit event (selection) batch size.
|
static String |
PROPERTY_NAME_GRANTEE
Audit spec property used to capture schema (grantee) that should be
granted access to crawler views and alert table.
|
static String |
PROPERTY_NAME_JDBC_BATCH_SIZE
Audit spec property used to capture JDBC batch size (alert table inserts)
|
static String |
PROPERTY_NAME_PERFORM_CONFIGURATION
Audit spec property used to track whether this particular crawler handler
instance requires configuration.
|
DEFAULT_BATCHSIZE
Constructor and Description |
---|
CrawlerHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleEventPosted(AuditEventHandlerContext context)
Called when at least one registered event is posted.
|
void |
handleInitialize(AuditEventHandlerContext context)
Initializes this handler.
|
void |
handleTimerExpired(AuditEventHandlerContext context)
Called when the timer for this AuditEventHandler expires.
|
deleteEvents, getAuditHandlerSpecification, getAuditSpecification, getHandlerProperty, handleDispose, processEvent, processEvents, processEvents, selectEvents, selectEvents, selectMaximumEventId, setHandlerProperty
public static final String PROPERTY_NAME_PERFORM_CONFIGURATION
public static final String PROPERTY_NAME_GRANTEE
public static final String PROPERTY_NAME_AUDIT_EVENT_BATCH_SIZE
public static final String PROPERTY_NAME_JDBC_BATCH_SIZE
public static final String PROPERTY_NAME_ALERT_TABLE_SUFFIX
public void handleInitialize(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
Called immediately after construction.
handleInitialize
in interface AuditEventHandler
handleInitialize
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failspublic void handleEventPosted(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
handleEventPosted
in interface AuditEventHandler
handleEventPosted
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failspublic void handleTimerExpired(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
handleTimerExpired
in interface AuditEventHandler
handleTimerExpired
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failsCopyright © 2023. All rights reserved.