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 Summary
FieldsModifier 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 Summary
Modifier 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_AUTO
The "user" that will be logged for alarms acknowledged by the system. -
SYS_ACK_USR_EVT_LIMIT
The "user" that will be logged for alarms acknowledged by the live event limit overflowing; seeGeneralAlarmSettings
-
-
Method Details
-
startup
void startup()Performs any start up tasks. Called by theAlarmJournalManager. -
shutdown
void shutdown()Performs any shut down tasks. Called by theAlarmJournalManager. -
getName
Name of the journal. -
isEnabled
boolean isEnabled()Indicates whether the user has chosen to enable the journaling system. -
isQueryOnly
boolean isQueryOnly()Indicates whether this journal should only be used for querying; if false, storage will not be attempted. -
isInitialized
boolean isInitialized()Indicates whether the system has properly initialized and can handle events. -
storeRawEvent
void storeRawEvent(String source, String dispPath, String uuid, int priority, int eventType, int eventFlags, EventData data) Stores an event directly into this journal. -
query
Queries the journal and returns the result.- Throws:
Exception
-
storeEvent
Shorthand to store an event without extracting every field manually. -
matchesFilter
Checks 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). -
matchesFilter
Checks 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. -
storeSystemEvent
Shortcut to store a system event (likely, a constant fromAlarmSystemEventdirectly.
-