Interface AlarmJournal
- 
 public interface AlarmJournalBasic interface for the AlarmJournal extension point. Includes some helper methods to aid with storage and filtering.- Since:
- 8.0.5
 
- 
- 
Field SummaryFields Modifier and Type Field Description static QualifiedPathSYS_ACK_USR_AUTOThe "user" that will be logged for alarms acknowledged by the system.static QualifiedPathSYS_ACK_USR_EVT_LIMITThe "user" that will be logged for alarms acknowledged by the live event limit overflowing; seeGeneralAlarmSettings
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()Name of the journal.booleanisEnabled()Indicates whether the user has chosen to enable the journaling system.booleanisInitialized()Indicates whether the system has properly initialized and can handle events.booleanisQueryOnly()Indicates 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.AlarmQueryResultquery(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(java.lang.String source, java.lang.String dispPath, java.lang.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 Detail- 
SYS_ACK_USR_AUTOstatic final QualifiedPath SYS_ACK_USR_AUTO The "user" that will be logged for alarms acknowledged by the system.
 - 
SYS_ACK_USR_EVT_LIMITstatic final QualifiedPath SYS_ACK_USR_EVT_LIMIT The "user" that will be logged for alarms acknowledged by the live event limit overflowing; seeGeneralAlarmSettings
 
- 
 - 
Method Detail- 
startupvoid startup() Performs any start up tasks. Called by theAlarmJournalManager.
 - 
shutdownvoid shutdown() Performs any shut down tasks. Called by theAlarmJournalManager.
 - 
getName@Nullable java.lang.String getName() Name 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(java.lang.String source, java.lang.String dispPath, java.lang.String uuid, int priority, int eventType, int eventFlags, EventData data)Stores an event directly into this journal.
 - 
queryAlarmQueryResult query(@Nonnull AlarmFilter filter) throws java.lang.Exception Queries the journal and returns the result.- Throws:
- java.lang.Exception
 
 - 
storeEventvoid storeEvent(AlarmEvent event, AlarmStateTransition transition) Shorthand to store an event without extracting every field manually.
 - 
matchesFilterboolean matchesFilter(AlarmEvent event) 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).
 - 
storeSystemEventvoid storeSystemEvent(@Nonnull QualifiedPath eventSource, @Nullable EventData data)Shortcut to store a system event (likely, a constant fromAlarmSystemEventdirectly.
 
- 
 
-