Class AlivenessMonitor

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.EventListener, org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<MonitoringState>, org.opendaylight.mdsal.binding.api.DataTreeChangeListener<MonitoringState>, org.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<MonitoringState>, AlivenessMonitorService, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener, org.opendaylight.yangtools.yang.binding.NotificationListener, org.opendaylight.yangtools.yang.binding.RpcService

    @Singleton
    public class AlivenessMonitor
    extends org.opendaylight.serviceutils.tools.listener.AbstractClusteredSyncDataTreeChangeListener<MonitoringState>
    implements AlivenessMonitorService, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener
    • Constructor Detail

      • AlivenessMonitor

        @Inject
        public AlivenessMonitor​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker,
                                IdManagerService idManager,
                                org.opendaylight.controller.md.sal.binding.api.NotificationPublishService notificationPublishService,
                                AlivenessProtocolHandlerRegistry alivenessProtocolHandlerRegistry)
    • Method Detail

      • close

        @PreDestroy
        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • onPacketReceived

        public void onPacketReceived​(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packetReceived)
        Specified by:
        onPacketReceived in interface org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener
      • onInterfaceStateUp

        public void onInterfaceStateUp​(java.lang.String interfaceName)
      • onInterfaceStateDown

        public void onInterfaceStateDown​(java.lang.String interfaceName)
      • remove

        public void remove​(@NonNull org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MonitoringState> instanceIdentifier,
                           @NonNull MonitoringState removedDataObject)
      • update

        public void update​(@NonNull org.opendaylight.yangtools.yang.binding.InstanceIdentifier<MonitoringState> instanceIdentifier,
                           @NonNull MonitoringState originalDataObject,
                           @NonNull MonitoringState updatedDataObject)
      • addBeforeListener

        public void addBeforeListener​(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)
        Specified by:
        addBeforeListener in interface org.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      • addAfterListener

        public void addAfterListener​(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)
        Specified by:
        addAfterListener in interface org.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      • register

        @PostConstruct
        public void register()
      • getDataBroker

        protected org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()
      • getDataStoreMetrics

        protected org.opendaylight.serviceutils.tools.listener.DataStoreMetrics getDataStoreMetrics()
      • add

        @Deprecated
        public void add​(T arg0)
        Deprecated.
      • remove

        @Deprecated
        public void remove​(T arg0)
        Deprecated.
      • update

        @Deprecated
        public void update​(T arg0,
                           T arg1)
        Deprecated.
      • onDataTreeChanged

        public default void onDataTreeChanged​(java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> arg0,
                                              org.opendaylight.serviceutils.tools.listener.DataStoreMetrics arg1)
      • add

        public default void add​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> arg0,
                                T arg1)