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 booleanisLocal()Determines whether thisAlarmProvidersources 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. AnAlarmQueryProviderenables 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
Optionalcontaining theAlarmQueryProviderif it exists, or an emptyOptionalif no query provider is available.
-
getNotificationProvider
Optional<AlarmNotificationProvider> getNotificationProvider()Provides access to the associated
AlarmNotificationProvider, if one is available, for thisAlarmProvider. AnAlarmNotificationProviderexposes 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
Optionalcontaining theAlarmNotificationProviderif it exists, or an emptyOptionalif no notification provider is available.
-
isLocal
default boolean isLocal()Determines whether this
AlarmProvidersources 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,
trueindicates that alarm data and acknowledgment capabilities are sourced from the local gateway system. For notification providers,trueindicates that available pipelines are sourced from the local gateway system.- Returns:
trueby default, indicating alarm functionality is local to the gateway. Override to returnfalseif functionality is sourced from a remote system.
-