Interface AlarmProvider
Implementations can support two capabilities:
AlarmQueryProvider
- provides the ability to query alarm status and acknowledge alarms. When sourced from the local gateway system, it indicates that alarm data originates from the local gateway.AlarmNotificationProvider
- exposes notification pipelines for alarm delivery. When sourced from the local gateway system, it indicates that available pipelines are hosted on the local gateway.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the unique name identifier for this alarm provider.Provides access to the associatedAlarmNotificationProvider
, if one is available, for thisAlarmProvider
.Provides access to the associatedAlarmQueryProvider
, if one is available, for thisAlarmProvider
.default boolean
isLocal()
Determines whether thisAlarmProvider
sources its functionality from the local gateway system.
-
Method Details
-
getName
String getName()Returns the unique name identifier for this alarm provider.- Returns:
- the provider name
-
getQueryProvider
Optional<AlarmQueryProvider> getQueryProvider()Provides access to the associated
AlarmQueryProvider
, if one is available, for thisAlarmProvider
. AnAlarmQueryProvider
enables querying alarm status and acknowledging alarms from either the local gateway or a remote system.When sourced from the local gateway system, the query provider indicates that alarm data and acknowledgment capabilities originate from the local gateway.
- Returns:
- An
Optional
containing theAlarmQueryProvider
if it exists, or an emptyOptional
if no query provider is available.
-
getNotificationProvider
Optional<AlarmNotificationProvider> getNotificationProvider()Provides access to the associated
AlarmNotificationProvider
, if one is available, for thisAlarmProvider
. AnAlarmNotificationProvider
exposes pipelines for alarm notifications, which can be used to send alarms to registered pipelines on local or remote systems.When sourced from the local gateway system, the notification provider indicates that available pipelines are hosted and managed by the local gateway.
- Returns:
- An
Optional
containing theAlarmNotificationProvider
if it exists, or an emptyOptional
if no notification provider is available.
-
isLocal
default boolean isLocal()Determines whether this
AlarmProvider
sources its functionality from the local gateway system. This affects how the provider's capabilities are exposed and managed within the alarm system.For query providers,
true
indicates that alarm data and acknowledgment capabilities are sourced from the local gateway system. For notification providers,true
indicates that available pipelines are sourced from the local gateway system.- Returns:
true
by default, indicating alarm functionality is local to the gateway. Override to returnfalse
if functionality is sourced from a remote system.
-