Class LispMappingService

    • Constructor Detail

      • LispMappingService

        public LispMappingService​(org.opendaylight.mdsal.binding.api.NotificationService notificationService,
                                  IMappingService mappingService,
                                  OdlLispSbService odlLispService,
                                  org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService)
    • Method Detail

      • shouldUseSmr

        public boolean shouldUseSmr()
      • setShouldUseSmr

        public void setShouldUseSmr​(boolean shouldUseSmr)
        Description copied from interface: IFlowMapping
        Configure LISP mapping service to track and notify of changes mapping requesters.
        Specified by:
        setShouldUseSmr in interface IFlowMapping
        Parameters:
        shouldUseSmr - Configure state of service
      • getNotificationService

        public org.opendaylight.mdsal.binding.api.NotificationService getNotificationService()
      • initialize

        public void initialize()
      • basicInit

        public void basicInit()
      • handleMapRequest

        public MapReply handleMapRequest​(MapRequest request)
        Description copied from interface: IFlowMapping
        Handle southbound map-request.
        Specified by:
        handleMapRequest in interface IFlowMapping
        Parameters:
        request - The map-request messages
        Returns:
        a map-reply messages
      • handleMapRegister

        public org.apache.commons.lang3.tuple.Pair<MapNotify,​java.util.List<TransportAddress>> handleMapRegister​(MapRegister mapRegister)
        Description copied from interface: IFlowMapping
        Handle southbound map-request.
        Specified by:
        handleMapRegister in interface IFlowMapping
        Parameters:
        mapRegister - The map-register message
        Returns:
        a map-notify message, if requested in the map-register or null otherwise
      • setShouldAuthenticate

        public void setShouldAuthenticate​(boolean shouldAuthenticate)
      • handleSMR

        public void handleSMR​(MapRequest smrMapRequest,
                              Rloc subscriber)
        Description copied from interface: IMapNotifyHandler
        Handle Solicit Map Request message.
        Specified by:
        handleSMR in interface IMapNotifyHandler
        Parameters:
        smrMapRequest - the SMR message
        subscriber - The address of the subscriber that should be SMRed
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • instantiateServiceInstance

        public void instantiateServiceInstance()
        Specified by:
        instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
      • closeServiceInstance

        public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> closeServiceInstance()
        Specified by:
        closeServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
      • getIdentifier

        public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
        Specified by:
        getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>