Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlarmAgent

        public AlarmAgent()
        constructor get the instance of platform MBeanServer.
    • 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 raised
        text - Additional details describing about the alarm on which dpnId and hostname
        src - 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 cleared
        text - Additional details describing about the alarm on which dpnId and hostname
        src - 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 dpnId
        host - 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