Interface DHTStorageAdapter

All Known Implementing Classes:
DHTDBImpl.adapterFacade, DHTPluginStorageManager

public interface DHTStorageAdapter
  • Method Details

    • 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)
    • keyDeleted

      void keyDeleted(DHTStorageKey adapter_key)
    • keyRead

      void keyRead(DHTStorageKey adapter_key, DHTTransportContact contact)
    • deserialiseStats

      DHTStorageKeyStats deserialiseStats(DataInputStream is) throws IOException
      Throws:
      IOException
    • valueAdded

      void valueAdded(DHTStorageKey key, DHTTransportValue value)
    • valueUpdated

      void valueUpdated(DHTStorageKey key, DHTTransportValue old_value, DHTTransportValue new_value)
    • valueDeleted

      void valueDeleted(DHTStorageKey key, DHTTransportValue value)
    • isDiversified

      boolean isDiversified(byte[] key)
    • getExistingDiversification

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

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

      int getNextValueVersions(int num)
    • keyBlockRequest

      DHTStorageBlock keyBlockRequest(DHTTransportContact direct_sender, byte[] request, byte[] signature)
    • getKeyBlockDetails

      DHTStorageBlock getKeyBlockDetails(byte[] key)
    • getDirectKeyBlocks

      DHTStorageBlock[] getDirectKeyBlocks()
    • getKeyForKeyBlock

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

      void setStorageForKey(String key, byte[] data)
    • getStorageForKey

      byte[] getStorageForKey(String key)
    • getRemoteFreqDivCount

      int getRemoteFreqDivCount()
    • getRemoteSizeDivCount

      int getRemoteSizeDivCount()
    • getKeyCount

      int getKeyCount()