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 QualifiedPath
The "user" that will be logged for alarms acknowledged by the system.static final QualifiedPath
The "user" that will be logged for alarms acknowledged by the live event limit overflowing; seeGeneralAlarmSettings
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Name of the journal.boolean
Indicates whether the user has chosen to enable the journaling system.boolean
Indicates whether the system has properly initialized and can handle events.boolean
Indicates whether this journal should only be used for querying; if false, storage will not be attempted.boolean
matchesFilter
(AlarmEvent event) Checks if the event matches the filters set up for this alarm journal.default boolean
matchesFilter
(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.void
shutdown()
Performs any shut down tasks.void
startup()
Performs any start up tasks.void
storeEvent
(AlarmEvent event, AlarmStateTransition transition) Shorthand to store an event without extracting every field manually.void
storeRawEvent
(String source, String dispPath, String uuid, int priority, int eventType, int eventFlags, EventData data) Stores an event directly into this journal.void
storeSystemEvent
(QualifiedPath eventSource, EventData data) Shortcut to store a system event (likely, a constant fromAlarmSystemEvent
directly.
-
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 fromAlarmSystemEvent
directly.
-