Class AuditEventHandlerBase
- java.lang.Object
- 
- org.forgerock.audit.events.handlers.AuditEventHandlerBase
 
- 
- All Implemented Interfaces:
- AuditEventHandler
 - Direct Known Subclasses:
- CsvAuditEventHandler,- ElasticsearchAuditEventHandler,- JdbcAuditEventHandler,- JmsAuditEventHandler,- JsonAuditEventHandler,- NoOpAuditEventHandler,- SplunkAuditEventHandler,- SyslogAuditEventHandler
 
 public abstract class AuditEventHandlerBase extends Object implements AuditEventHandler Abstract AuditEventHandler class.
- 
- 
Field SummaryFields Modifier and Type Field Description protected EventTopicsMetaDataeventTopicsMetaDataThe event topic meta data for the handler.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAuditEventHandlerBase(String name, EventTopicsMetaData eventTopicsMetaData, Set<String> acceptedTopics, boolean enabled)Create a new AuditEventHandler instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getHandledTopics()Gets the names of all audit event topics this handler is registered against.StringgetName()Gets the name of this audit event handler.Promise<ActionResponse,ResourceException>handleAction(Context context, String topic, ActionRequest request)Performs an action.booleanisEnabled()Checks if the audit event handler is enabled.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.forgerock.audit.events.handlers.AuditEventHandlerpublishEvent, queryEvents, readEvent, shutdown, startup
 
- 
 
- 
- 
- 
Field Detail- 
eventTopicsMetaDataprotected final EventTopicsMetaData eventTopicsMetaData The event topic meta data for the handler.
 
- 
 - 
Constructor Detail- 
AuditEventHandlerBaseprotected AuditEventHandlerBase(String name, EventTopicsMetaData eventTopicsMetaData, Set<String> acceptedTopics, boolean enabled) Create a new AuditEventHandler instance.- Parameters:
- name- The name of this AuditEventHandler.
- eventTopicsMetaData- Provides meta-data describing the audit event topics this AuditEventHandler may have to handle.
- acceptedTopics- Audit event topics the AuditEventHandler will handle.
- enabled- Whether or not the audit event handler is enabled.
 
 
- 
 - 
Method Detail- 
getNamepublic String getName() Description copied from interface:AuditEventHandlerGets the name of this audit event handler.- Specified by:
- getNamein interface- AuditEventHandler
- Returns:
- this handler's name.
 
 - 
getHandledTopicspublic Set<String> getHandledTopics() Description copied from interface:AuditEventHandlerGets the names of all audit event topics this handler is registered against.- Specified by:
- getHandledTopicsin interface- AuditEventHandler
- Returns:
- the names of all topics handled by this object.
 
 - 
isEnabledpublic boolean isEnabled() Description copied from interface:AuditEventHandlerChecks if the audit event handler is enabled.- Specified by:
- isEnabledin interface- AuditEventHandler
- Returns:
- whether or not the audit event handler is enabled
 
 - 
handleActionpublic Promise<ActionResponse,ResourceException> handleAction(Context context, String topic, ActionRequest request) Description copied from interface:AuditEventHandlerPerforms an action.- Specified by:
- handleActionin interface- AuditEventHandler
- Parameters:
- context- The context chain that initiated the event.
- topic- The topic on which action is performed.
- request- The request with the action.
- Returns:
- a promise with either a response or an exception
 
 
- 
 
-