Interface AlarmDataStore
-
- All Known Implementing Classes:
KafkaAlarmDataSync
public interface AlarmDataStore
This interface was created to be able to expose the methods onKafkaAlarmDataSync
to theSyncAlarms
shell command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
destroy()
OpennmsModelProtos.Alarm
getAlarm(String reductionKey)
Map<String,OpennmsModelProtos.Alarm>
getAlarms()
AlarmSyncResults
handleAlarmSnapshot(List<OnmsAlarm> alarms)
void
init()
boolean
isEnabled()
boolean
isReady()
void
setStartWithCleanState(boolean startWithCleanState)
-
-
-
Method Detail
-
init
void init() throws IOException
- Throws:
IOException
-
destroy
void destroy()
-
isEnabled
boolean isEnabled()
-
isReady
boolean isReady()
-
getAlarms
Map<String,OpennmsModelProtos.Alarm> getAlarms()
-
getAlarm
OpennmsModelProtos.Alarm getAlarm(String reductionKey)
-
handleAlarmSnapshot
AlarmSyncResults handleAlarmSnapshot(List<OnmsAlarm> alarms)
-
setStartWithCleanState
void setStartWithCleanState(boolean startWithCleanState)
-
-