Interface DHTStorageAdapter

    • Method Detail

      • getNetwork

        int getNetwork()
      • keyCreated

        DHTStorageKey keyCreated​(HashWrapper key,
                                 boolean local)
        Create a new storage key for a given key
        Returns:
        null if the key shouldn't be allocated (e.g.out of space)
      • deserialiseStats

        DHTStorageKeyStats deserialiseStats​(java.io.DataInputStream is)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • isDiversified

        boolean isDiversified​(byte[] key)
      • getExistingDiversification

        byte[][] getExistingDiversification​(byte[] key,
                                            boolean put_operation,
                                            boolean exhaustive_get,
                                            int max_depth)
      • createNewDiversification

        byte[][] createNewDiversification​(java.lang.String description,
                                          DHTTransportContact cause,
                                          byte[] key,
                                          boolean put_operation,
                                          byte diversification_type,
                                          boolean exhaustive_get,
                                          int max_depth)
      • getNextValueVersions

        int getNextValueVersions​(int num)
      • getKeyForKeyBlock

        byte[] getKeyForKeyBlock​(byte[] request)
      • setStorageForKey

        void setStorageForKey​(java.lang.String key,
                              byte[] data)
      • getStorageForKey

        byte[] getStorageForKey​(java.lang.String key)
      • getRemoteFreqDivCount

        int getRemoteFreqDivCount()
      • getRemoteSizeDivCount

        int getRemoteSizeDivCount()
      • getKeyCount

        int getKeyCount()