public class InformationExtractionHandlerDispatcher extends AuditEventHandlerAdapter
Modifier and Type | Class and Description |
---|---|
static class |
InformationExtractionHandlerDispatcher.DispatcherCallback
DispatcherCallback is used to provide notifications
of when handlers are disposed.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_NAME_FINISHER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for FINISH phases
(a SystemObject array specifying AuditSpecifications).
|
static String |
PROPERTY_NAME_PARSER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for PARSE phases
(a SystemObject array specifying AuditSpecifications).
|
static String |
PROPERTY_NAME_PREPARER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for PREPARE phases
(a SystemObject array specifying AuditSpecifications).
|
static String |
PROPERTY_NAME_PRIORITY_FINISHER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for FINISH phases for high priority finishes.
|
static String |
PROPERTY_NAME_PRIORITY_PARSER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for PARSE phases for high priority parses.
|
static String |
PROPERTY_NAME_PRIORITY_PREPARER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for PREPARE phases for high priority prepares.
|
static String |
PROPERTY_NAME_PRIORITY_SOLVER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for SOLVE phases for high priority solves.
|
static String |
PROPERTY_NAME_PRIORITY_TRAINER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for TRAIN phases for high priority trains.
|
static String |
PROPERTY_NAME_SOLVER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for SOLVE phases
(a SystemObject array specifying AuditSpecifications).
|
static String |
PROPERTY_NAME_TRAINER_HANDLERS
Handler property that specifies the handlers that are the
dispatch targets for TRAIN phases
(a SystemObject array specifying AuditSpecifications).
|
DEFAULT_BATCHSIZE
Constructor and Description |
---|
InformationExtractionHandlerDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(String type,
InformationExtractionHandlerDispatcher.DispatcherCallback callback)
Add (register) a DispatcherCallback.
|
InformationExtractionHandlerDispatcher.DispatcherCallback |
getCallback(String type)
Gets a DispatcherCallback by type.
|
protected AuditSpecification[] |
getFinisherHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
handlers to use for the FINISH phase.
|
IfsLogger |
getLogger()
Gets the logger, optionally from a subclass.
|
protected AuditSpecification |
getNextFinisherHandler(InformationExtraction ext)
Gets the next Handler for a FINISH.
|
protected AuditSpecification |
getNextParserHandler(InformationExtraction ext)
Gets the next Handler for a PARSE.
|
protected AuditSpecification |
getNextPreparerHandler(InformationExtraction ext)
Gets the next Handler for a PREPARE.
|
protected AuditSpecification |
getNextSolverHandler(InformationExtraction ext)
Gets the next Handler for a SOLVE.
|
protected AuditSpecification |
getNextTrainerHandler(InformationExtraction ext)
Gets the next Handler for a TRAIN.
|
protected AuditSpecification[] |
getParserHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
handlers to use for the PARSE phase.
|
protected AuditSpecification[] |
getPreparerHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
handlers to use for the PREPARE phase.
|
protected AuditSpecification[] |
getPriorityFinisherHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
high-priority handlers to use for the FINISH phase.
|
protected AuditSpecification[] |
getPriorityParserHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
high-priority handlers to use for the PARSE phase.
|
protected AuditSpecification[] |
getPriorityPreparerHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
high-priority handlers to use for the PREPARE phase.
|
protected AuditSpecification[] |
getPrioritySolverHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
high-priority handlers to use for the SOLVE phase.
|
protected AuditSpecification[] |
getPriorityTrainerHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
high-priority handlers to use for the TRAIN phase.
|
protected AuditSpecification[] |
getSolverHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
handlers to use for the SOLVE phase.
|
protected AuditSpecification[] |
getTargetHandlersFromEventAssignmentTableList(InformationExtraction ext,
SimplePropertyTableList sptl,
String propName)
Get the set of AuditSpecification objects identifying the
handlers to use as dispatch targets, using the specified
EventAssignmentTableList.
|
protected AuditSpecification[] |
getTrainerHandlers(InformationExtraction ext)
Get the set of AuditSpecification objects identifying the
handlers to use for the TRAIN phase.
|
void |
handleDispose(AuditEventHandlerContext context)
Called when the AuditEventHandler instance will no longer
be used.
|
void |
handleEventPosted(AuditEventHandlerContext context)
Called when at least one registered event is posted.
|
protected void |
handleInformationExtractionPrepareRequested(InformationExtraction ext)
Handle the PREPARE of an InformationExtraction.
|
void |
handleInitialize(AuditEventHandlerContext context)
Initializes this handler.
|
void |
handleTimerExpired(AuditEventHandlerContext context)
Called when the timer for this AuditEventHandler expires.
|
protected boolean |
isDefaultHandlerSet(SimplePropertyTable spt)
Return indication as to whether the specified handlerSet table
from the EventAssignmentTableList is the default.
|
protected boolean |
isMatchingHandlerSet(SimplePropertyTable spt,
InformationExtraction ext)
Return indication as to whether the specified InformationExtraction
matches the specifcations in the specified handlerSet table
from the EventAssignmentTableList
|
protected void |
processEvent(AuditEventHandlerContext context,
AuditEvent event)
Process an event, either directly or by dispatching the event.
|
protected void |
processScheduledExtractions(AuditEventHandlerContext context)
Process any extractions that have been scheduled to run in the future.
|
void |
removeCallback(String type)
Remove (unregister) a DispatcherCallback.
|
deleteEvents, getAuditHandlerSpecification, getAuditSpecification, getHandlerProperty, processEvents, processEvents, selectEvents, selectEvents, selectMaximumEventId, setHandlerProperty
public static final String PROPERTY_NAME_PREPARER_HANDLERS
public static final String PROPERTY_NAME_PARSER_HANDLERS
public static final String PROPERTY_NAME_SOLVER_HANDLERS
public static final String PROPERTY_NAME_FINISHER_HANDLERS
public static final String PROPERTY_NAME_TRAINER_HANDLERS
public static final String PROPERTY_NAME_PRIORITY_PREPARER_HANDLERS
public static final String PROPERTY_NAME_PRIORITY_PARSER_HANDLERS
public static final String PROPERTY_NAME_PRIORITY_SOLVER_HANDLERS
public static final String PROPERTY_NAME_PRIORITY_FINISHER_HANDLERS
public static final String PROPERTY_NAME_PRIORITY_TRAINER_HANDLERS
public InformationExtractionHandlerDispatcher()
public IfsLogger getLogger()
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 failspublic void handleDispose(AuditEventHandlerContext context) throws Exception
AuditEventHandlerAdapter
The instance should release any resources it is holding that would not be automatically released as part of the object's garbage collection.
handleDispose
in interface AuditEventHandler
handleDispose
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingException
- if the operation failspublic InformationExtractionHandlerDispatcher.DispatcherCallback getCallback(String type)
type
- the callback typepublic void addCallback(String type, InformationExtractionHandlerDispatcher.DispatcherCallback callback)
type
- the callback typecallback
- the callbackpublic void removeCallback(String type)
type
- the callback typeprotected AuditSpecification[] getPreparerHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getParserHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getSolverHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getFinisherHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getTrainerHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getPriorityPreparerHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getPriorityParserHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getPrioritySolverHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getPriorityFinisherHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getPriorityTrainerHandlers(InformationExtraction ext) throws IfsException
ext
- the InformationExtraction object being processedIfsException
- if the operation failsprotected AuditSpecification[] getTargetHandlersFromEventAssignmentTableList(InformationExtraction ext, SimplePropertyTableList sptl, String propName) throws IfsException
ext
- the InformationExtractionsptl
- the EventAssignmentTableListpropName
- the SimpleProperty name within the handlerSet tableIfsException
- if the operation failsprotected boolean isMatchingHandlerSet(SimplePropertyTable spt, InformationExtraction ext) throws IfsException
spt
- the handlerSet table from the EventAssignmentTableListext
- the InformationExtractionIfsException
- if the operation failsprotected boolean isDefaultHandlerSet(SimplePropertyTable spt) throws IfsException
spt
- the handlerSet table from the EventAssignmentTableListIfsException
- if the operation failsprotected AuditSpecification getNextPreparerHandler(InformationExtraction ext) throws IfsException
ext
- the InformationExtractionIfsException
- if the operation failsprotected AuditSpecification getNextParserHandler(InformationExtraction ext) throws IfsException
ext
- the InformationExtractionIfsException
- if the operation failsprotected AuditSpecification getNextSolverHandler(InformationExtraction ext) throws IfsException
ext
- the InformationExtractionIfsException
- if the operation failsprotected AuditSpecification getNextFinisherHandler(InformationExtraction ext) throws IfsException
ext
- the InformationExtractionIfsException
- if the operation failsprotected AuditSpecification getNextTrainerHandler(InformationExtraction ext) throws IfsException
ext
- the InformationExtractionIfsException
- if the operation failsprotected void processScheduledExtractions(AuditEventHandlerContext context) throws IfsException
context
- the AuditEventHandlerContext to use for processingsession
- the session contextIfsException
- if the operation failsprotected void processEvent(AuditEventHandlerContext context, AuditEvent event) throws IfsException
Delete the event after processing.
processEvent
in class AuditEventHandlerAdapter
context
- the AuditEventHandlerContext to use for processingevent
- the event to processIfsException
- if the operation failsprotected void handleInformationExtractionPrepareRequested(InformationExtraction ext) throws IfsException
ext
- the InformationExtractionIfsException
- if the operation failsCopyright © 2023. All rights reserved.