Interface IMappingSystem


  • public interface IMappingSystem
    Mapping System interface.
    Author:
    Florin Coras
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addAuthenticationKey​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.mapping.authkey.container.MappingAuthkey authKey)
      Add authentication key.
      void addData​(MappingOrigin origin, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key, String subKey, Object data)
      Add data for key.
      void addMapping​(MappingOrigin origin, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key, org.opendaylight.lispflowmapping.lisp.type.MappingData mapping)
      Add mapping.
      org.opendaylight.lispflowmapping.lisp.type.MappingData addNegativeMapping​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
      Generate and add a negative mapping entry originated from the southbound, and return the generated mapping.
      org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.mapping.authkey.container.MappingAuthkey getAuthenticationKey​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
      Retrieve authentication key.
      Object getData​(MappingOrigin origin, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key, String subKey)
      Generic retrieval of data.
      org.opendaylight.lispflowmapping.lisp.type.MappingData getMapping​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid dst)
      Retrieves mapping for the provided dst key.
      org.opendaylight.lispflowmapping.lisp.type.MappingData getMapping​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid src, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid dst)
      Retrieves mapping for the provided src and dst key.
      org.opendaylight.lispflowmapping.lisp.type.MappingData getMapping​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid src, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid dst, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.XtrId xtrId)
      Retrieves mapping for the provided dst key for a particular xtr id.
      org.opendaylight.lispflowmapping.lisp.type.MappingData getMapping​(MappingOrigin origin, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
      Retrieves mapping from table for provided key.
      org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid getParentPrefix​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
      Returns the parent prefix for given key.
      Set<Subscriber> getSubscribers​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid eid)
      Retrieves the subscribers for an EID.
      Set<org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid> getSubtree​(MappingOrigin origin, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
      Retrieves the subtree of a maskable prefix from the given map-cache.
      org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid getWidestNegativePrefix​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
      Retrieves widest negative prefix from table for provided key.
      boolean isMaster()
      Get cluster master status.
      String prettyPrintKeys()
      Print keys in cache in a human friendly format.
      String prettyPrintMappings()
      Print mappings in cache in a human friendly format.
      String printKeys()
      Print all authentication keys.
      String printMappings()
      Print all mappings.
      void refreshMappingRegistration​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.XtrId xtrId, Long timestamp)
      Refresh southbound mapping registration timestamp.
      void removeAuthenticationKey​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
      Remove authentication key.
      void removeData​(MappingOrigin origin, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key, String subKey)
      Generic removal of data.
      void removeMapping​(MappingOrigin origin, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
      Remove mapping.
      void setIsMaster​(boolean isMaster)
      Set cluster master status.
      void setIterateMask​(boolean iterate)
      Sets iterateMask.
      void setMappingMerge​(boolean mappingMerge)
      Configure merge policy.
      void subscribe​(Subscriber subscriber, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid subscribedEid)
      Subscribe a Subscriber to receive updates about mapping changes for an EID.
      void updateMapping​(MappingOrigin origin, org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key, org.opendaylight.lispflowmapping.lisp.type.MappingData mapping)
      Update mapping.
    • Method Detail

      • addMapping

        void addMapping​(MappingOrigin origin,
                        org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key,
                        org.opendaylight.lispflowmapping.lisp.type.MappingData mapping)
        Add mapping.
        Parameters:
        origin - Table where mapping should be added
        key - Key of the mapping
        mapping - Mapping to be stored
      • addNegativeMapping

        org.opendaylight.lispflowmapping.lisp.type.MappingData addNegativeMapping​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
        Generate and add a negative mapping entry originated from the southbound, and return the generated mapping.
        Parameters:
        key - Key of the mapping
        Returns:
        Returns the generated negative mapping (which is never null).
      • updateMapping

        void updateMapping​(MappingOrigin origin,
                           org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key,
                           org.opendaylight.lispflowmapping.lisp.type.MappingData mapping)
        Update mapping.
        Parameters:
        origin - Table where mapping should be added
        key - Key of the mapping
        mapping - Mapping to be stored
      • getMapping

        org.opendaylight.lispflowmapping.lisp.type.MappingData getMapping​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid src,
                                                                          org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid dst)
        Retrieves mapping for the provided src and dst key.
        Parameters:
        src - Source Key to be looked up
        dst - Destination Key to be looked up
        Returns:
        Returns the mapping found in the MappingSystem or null if nothing is found.
      • getMapping

        org.opendaylight.lispflowmapping.lisp.type.MappingData getMapping​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid dst)
        Retrieves mapping for the provided dst key.
        Parameters:
        dst - Destination Key to be looked up
        Returns:
        Returns the mapping found in the Mapping System or null if nothing is found.
      • getMapping

        org.opendaylight.lispflowmapping.lisp.type.MappingData getMapping​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid src,
                                                                          org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid dst,
                                                                          org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.XtrId xtrId)
        Retrieves mapping for the provided dst key for a particular xtr id.
        Parameters:
        src - Source Key to be looked up.
        dst - Destination Key to be looked up.
        xtrId - Xtr Id for which this look to be done. If null, this method works like regular getMapping(src, dst)
        Returns:
        Returns the mapping found in the simple map cache or null if nothing is found.
      • getMapping

        org.opendaylight.lispflowmapping.lisp.type.MappingData getMapping​(MappingOrigin origin,
                                                                          org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
        Retrieves mapping from table for provided key.
        Parameters:
        origin - Table where mapping should be looked up
        key - Key to be looked up
        Returns:
        Returns the mapping found in the cache or null if nothing is found.
      • getWidestNegativePrefix

        org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid getWidestNegativePrefix​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
        Retrieves widest negative prefix from table for provided key.
        Parameters:
        key - Key to be looked up
        Returns:
        Returns the prefix found in the cache or null if nothing is found.
      • getSubtree

        Set<org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid> getSubtree​(MappingOrigin origin,
                                                                                                                 org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
        Retrieves the subtree of a maskable prefix from the given map-cache.
        Parameters:
        origin - Table where the key should be looked up
        key - Key to be looked up
        Returns:
        The child prefixes of the prefix, including the prefix itself if present
      • refreshMappingRegistration

        void refreshMappingRegistration​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key,
                                        org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.XtrId xtrId,
                                        Long timestamp)
        Refresh southbound mapping registration timestamp.
        Parameters:
        key - The EID whose registration must be refreshed
        xtrId - xTR-ID of the mapping to be refreshed
        timestamp - New timestamp for the mapping
      • removeMapping

        void removeMapping​(MappingOrigin origin,
                           org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
        Remove mapping.
        Parameters:
        origin - Table for mapping that should be removed
        key - Key to be removed
      • subscribe

        void subscribe​(Subscriber subscriber,
                       org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid subscribedEid)
        Subscribe a Subscriber to receive updates about mapping changes for an EID.
        Parameters:
        subscriber - The Subscriber object with information about the subscriber
        subscribedEid - The EID for which the subscriber will receive updates
      • getSubscribers

        Set<Subscriber> getSubscribers​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid eid)
        Retrieves the subscribers for an EID.
        Parameters:
        eid - The EID to be looked up
        Returns:
        The set of subscribers for the EID
      • addAuthenticationKey

        void addAuthenticationKey​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key,
                                  org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.mapping.authkey.container.MappingAuthkey authKey)
        Add authentication key.
        Parameters:
        key - The key for which the authentication key is added
        authKey - The authentication key
      • getAuthenticationKey

        org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.mapping.authkey.container.MappingAuthkey getAuthenticationKey​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
        Retrieve authentication key.
        Parameters:
        key - The key for which the authentication key is being looked up.
        Returns:
        The authentication key.
      • removeAuthenticationKey

        void removeAuthenticationKey​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
        Remove authentication key.
        Parameters:
        key - Key for which the authentication key should be removed.
      • addData

        void addData​(MappingOrigin origin,
                     org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key,
                     String subKey,
                     Object data)
        Add data for key.
        Parameters:
        origin - Table for data that should be added
        key - The key for which data is inserted
        subKey - The subKey where data should be inserted
        data - The data to be stored
      • getData

        Object getData​(MappingOrigin origin,
                       org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key,
                       String subKey)
        Generic retrieval of data.
        Parameters:
        origin - Table from where data should be retrieved
        key - The key where the data is stored
        subKey - The subKey where data is stored
        Returns:
        The data
      • removeData

        void removeData​(MappingOrigin origin,
                        org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key,
                        String subKey)
        Generic removal of data.
        Parameters:
        origin - Table from where data should be removed
        key - The key of the data to be removed
        subKey - The subKey of the data to be removed
      • getParentPrefix

        org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid getParentPrefix​(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid key)
        Returns the parent prefix for given key.
        Parameters:
        key - The key which parent is to be returned.
        Returns:
        The parent perfix of a specific key.
      • setIterateMask

        void setIterateMask​(boolean iterate)
        Sets iterateMask. If set to true, longest prefix matching for IP keys is used.
        Parameters:
        iterate - Value to configure
      • setMappingMerge

        void setMappingMerge​(boolean mappingMerge)
        Configure merge policy. If set to true, mappings are merged.
        Parameters:
        mappingMerge - Value to configure
      • printMappings

        String printMappings()
        Print all mappings. Used for testing, debugging and the karaf shell.
        Returns:
        String consisting of all mappings
      • prettyPrintMappings

        String prettyPrintMappings()
        Print mappings in cache in a human friendly format.
        Returns:
        a String consisting of all the mappings in the cache
      • printKeys

        String printKeys()
        Print all authentication keys. Used for testing, debugging and the karaf shell.
        Returns:
        String consisting of all mappings
      • prettyPrintKeys

        String prettyPrintKeys()
        Print keys in cache in a human friendly format.
        Returns:
        a String consisting of all the keys in the cache
      • setIsMaster

        void setIsMaster​(boolean isMaster)
        Set cluster master status.
        Parameters:
        isMaster - is|isn't master
      • isMaster

        boolean isMaster()
        Get cluster master status.
        Returns:
        isMaster is|isn't master