Interface AlarmProvider
public interface AlarmProvider
The AlarmProvider is an entity that operates on alarms, and essentially provides access to alarm state model
functionality, but in a way that can be remote or implemented differently than the core implementation.
Currently we have two potentially sub-interfaces that an implementation may support: AlarmQueryProvider and
AlarmNotificationProvider.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Retrieves the name of this AlarmProvider.Retrieves the notification provider associated with this AlarmProvider, if one is available.Provides access to an object implementing theAlarmQueryProviderinterface, if the implementation of this AlarmProvider supports querying alarms.default booleanisLocal()Determines whether thisAlarmProvidersources its functionality from the local gateway system.booleanIndicates whether this AlarmProvider supports notification functionality.booleanIndicates whether thisAlarmProviderimplementation supports querying capabilities.
-
Method Details
-
getName
String getName()Retrieves the name of this AlarmProvider.- Returns:
- the name of the AlarmProvider as a String.
-
supportsQuerying
boolean supportsQuerying()Indicates whether thisAlarmProviderimplementation supports querying capabilities. Querying capabilities allow fetching alarm information based on criteria, which may require integration with anAlarmQueryProvider.- Returns:
- true if querying capabilities are supported by this provider, false otherwise
-
getQueryProvider
Provides access to an object implementing theAlarmQueryProviderinterface, if the implementation of this AlarmProvider supports querying alarms.- Returns:
- An instance of
AlarmQueryProviderif querying is supported, ornullotherwise.
-
supportsNotification
boolean supportsNotification()Indicates whether this AlarmProvider supports notification functionality.- Returns:
trueif the provider supports notifications,falseotherwise.
-
getNotificationProvider
Retrieves the notification provider associated with this AlarmProvider, if one is available. A notification provider is responsible for exposing pipelines that can be used to send alarm notifications.- Returns:
- the AlarmNotificationProvider instance if supported by this AlarmProvider, or null if not supported.
-
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.
-