@Singleton public class AlarmAgent extends Object
| Constructor and Description |
|---|
AlarmAgent()
constructor get the instance of platform MBeanServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearControlPathAlarm(String nodeId,
String host)
Method gets the alarm details to be cleared and construct the alarm
objects.
|
void |
invokeFMclearmethod(String alarmId,
String text,
String src)
Method invoke clear alarm JMX API in platform MbeanServer with alarm
details.
|
void |
invokeFMraisemethod(String alarmId,
String text,
String src)
Method invoke raise alarm JMX API in platform MbeanServer with alarm
details.
|
void |
raiseControlPathAlarm(String nodeId,
String host)
Method gets the alarm details to be raised and construct the alarm
objects.
|
void |
registerAlarmMbean()
Method registers alarm mbean in platform MbeanServer.
|
void |
start() |
public AlarmAgent()
@PostConstruct public void start() throws Exception
Exceptionpublic void registerAlarmMbean()
public void invokeFMraisemethod(String alarmId, String text, String src)
alarmId - alarm to be raisedtext - Additional details describing about the alarm on which dpnId
and hostnamesrc - Source of the alarm ex: dpnId=openflow:1 the source node that
caused this alarmpublic void invokeFMclearmethod(String alarmId, String text, String src)
alarmId - alarm to be clearedtext - Additional details describing about the alarm on which dpnId
and hostnamesrc - Source of the alarm ex: dpn=openflow:1 the source node that
caused this alarmpublic void raiseControlPathAlarm(String nodeId, String host)
nodeId - Source of the alarm dpnIdhost - Controller hostnameCopyright © 2019 OpenDaylight. All rights reserved.