Interface InterfaceToNodeCache

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Should only be used for testing.
      void dataSourceSync()  
      java.util.Optional<java.lang.Integer> getFirstNodeId​(java.lang.String location, java.net.InetAddress ipAddr)  
      java.lang.Iterable<java.lang.Integer> getNodeId​(java.lang.String location, java.net.InetAddress ipAddr)  
      void removeInterfacesForNode​(int nodeId)  
      boolean removeNodeId​(java.lang.String location, java.net.InetAddress ipAddr, int nodeId)  
      boolean setNodeId​(java.lang.String location, java.net.InetAddress ipAddr, int nodeId)  
      int size()  
    • Method Detail

      • dataSourceSync

        void dataSourceSync()
      • getNodeId

        java.lang.Iterable<java.lang.Integer> getNodeId​(java.lang.String location,
                                                        java.net.InetAddress ipAddr)
      • setNodeId

        boolean setNodeId​(java.lang.String location,
                          java.net.InetAddress ipAddr,
                          int nodeId)
      • removeNodeId

        boolean removeNodeId​(java.lang.String location,
                             java.net.InetAddress ipAddr,
                             int nodeId)
      • size

        int size()
      • clear

        void clear()
        Should only be used for testing.
      • getFirstNodeId

        java.util.Optional<java.lang.Integer> getFirstNodeId​(java.lang.String location,
                                                             java.net.InetAddress ipAddr)
      • removeInterfacesForNode

        void removeInterfacesForNode​(int nodeId)