Interface AlarmJournal
public interface AlarmJournal
Basic interface for the AlarmJournal extension point. Includes some helper methods to aid with storage and filtering.
- Since:
- 8.0.5
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final QualifiedPathThe "user" that will be logged for alarms acknowledged by the system.static final QualifiedPathThe "user" that will be logged for alarms acknowledged by the live event limit overflowing; seeGeneralAlarmSettings
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Name of the journal.booleanIndicates whether the user has chosen to enable the journaling system.booleanIndicates whether the system has properly initialized and can handle events.booleanIndicates whether this journal should only be used for querying; if false, storage will not be attempted.booleanmatchesFilter(AlarmEvent event) Checks if the event matches the filters set up for this alarm journal.default booleanmatchesFilter(String source, String displayPath) Checks if the source and the display path for some alarm event match the data filters set up for this alarm journal.query(AlarmFilter filter) Queries the journal and returns the result.voidshutdown()Performs any shut down tasks.voidstartup()Performs any start up tasks.voidstoreEvent(AlarmEvent event, AlarmStateTransition transition) Shorthand to store an event without extracting every field manually.voidstoreRawEvent(String source, String dispPath, String uuid, int priority, int eventType, int eventFlags, EventData data) Stores an event directly into this journal.voidstoreSystemEvent(QualifiedPath eventSource, EventData data) Shortcut to store a system event (likely, a constant fromAlarmSystemEventdirectly.
- 
Field Details- 
SYS_ACK_USR_AUTOThe "user" that will be logged for alarms acknowledged by the system.
- 
SYS_ACK_USR_EVT_LIMITThe "user" that will be logged for alarms acknowledged by the live event limit overflowing; seeGeneralAlarmSettings
 
- 
- 
Method Details- 
startupvoid startup()Performs any start up tasks. Called by theAlarmJournalManager.
- 
shutdownvoid shutdown()Performs any shut down tasks. Called by theAlarmJournalManager.
- 
getNameName of the journal.
- 
isEnabledboolean isEnabled()Indicates whether the user has chosen to enable the journaling system.
- 
isQueryOnlyboolean isQueryOnly()Indicates whether this journal should only be used for querying; if false, storage will not be attempted.
- 
isInitializedboolean isInitialized()Indicates whether the system has properly initialized and can handle events.
- 
storeRawEventvoid storeRawEvent(String source, String dispPath, String uuid, int priority, int eventType, int eventFlags, EventData data) Stores an event directly into this journal.
- 
queryQueries the journal and returns the result.- Throws:
- Exception
 
- 
storeEventShorthand to store an event without extracting every field manually.
- 
matchesFilterChecks if the event matches the filters set up for this alarm journal. Returns false if match fails or event is null (or, this journal doesn't support filtering).
- 
matchesFilterChecks if the source and the display path for some alarm event match the data filters set up for this alarm journal. Returns false if match fails or the journal doesn't support filtering.
- 
storeSystemEventShortcut to store a system event (likely, a constant fromAlarmSystemEventdirectly.
 
-