Class MockInterfaceToNodeCache

    • Constructor Detail

      • MockInterfaceToNodeCache

        public MockInterfaceToNodeCache()
    • Method Detail

      • setNodeId

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

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

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

        public void dataSourceSync()
      • size

        public int size()
      • clear

        public void clear()
        Description copied from interface: InterfaceToNodeCache
        Should only be used for testing.
      • removeInterfacesForNode

        public void removeInterfacesForNode​(int nodeId)