Class AlarmAgent
- java.lang.Object
-
- org.opendaylight.genius.fcapsapp.alarm.AlarmAgent
-
@Singleton public class AlarmAgent extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AlarmAgent()
constructor get the instance of platform MBeanServer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearControlPathAlarm(java.lang.String nodeId, java.lang.String host)
Method gets the alarm details to be cleared and construct the alarm objects.void
invokeFMclearmethod(java.lang.String alarmId, java.lang.String text, java.lang.String src)
Method invoke clear alarm JMX API in platform MbeanServer with alarm details.void
invokeFMraisemethod(java.lang.String alarmId, java.lang.String text, java.lang.String src)
Method invoke raise alarm JMX API in platform MbeanServer with alarm details.void
raiseControlPathAlarm(java.lang.String nodeId, java.lang.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()
-
-
-
Method Detail
-
start
@PostConstruct public void start() throws java.lang.Exception
- Throws:
java.lang.Exception
-
registerAlarmMbean
public void registerAlarmMbean()
Method registers alarm mbean in platform MbeanServer.
-
invokeFMraisemethod
public void invokeFMraisemethod(java.lang.String alarmId, java.lang.String text, java.lang.String src)
Method invoke raise alarm JMX API in platform MbeanServer with alarm details.- Parameters:
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 alarm
-
invokeFMclearmethod
public void invokeFMclearmethod(java.lang.String alarmId, java.lang.String text, java.lang.String src)
Method invoke clear alarm JMX API in platform MbeanServer with alarm details.- Parameters:
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 alarm
-
raiseControlPathAlarm
public void raiseControlPathAlarm(java.lang.String nodeId, java.lang.String host)
Method gets the alarm details to be raised and construct the alarm objects.- Parameters:
nodeId
- Source of the alarm dpnIdhost
- Controller hostname
-
clearControlPathAlarm
public void clearControlPathAlarm(java.lang.String nodeId, java.lang.String host)
Method gets the alarm details to be cleared and construct the alarm objects.- Parameters:
nodeId
- Source of the alarm dpnId
-
-