Interface PersistentUUIDManager

All Known Implementing Classes:
PersistentUUIDManagerImpl

public interface PersistentUUIDManager
PersistentUUIDManager maintains a mapping of PersistentUUIDs present in the cluster
Since:
9.0
Author:
Tristan Tarrant
  • Method Details

    • addPersistentAddressMapping

      void addPersistentAddressMapping(Address address, PersistentUUID persistentUUID)
      Adds a mapping between an Address and a PersistentUUID
      Parameters:
      address -
      persistentUUID -
    • getPersistentUuid

      PersistentUUID getPersistentUuid(Address address)
      Retrieves the PersistentUUID of a node given its Address
      Parameters:
      address - the address to lookup
      Returns:
      the persistentuuid of the node, null if no mapping is present
    • getAddress

      Address getAddress(PersistentUUID persistentUUID)
      Retrieves the Address of a node given its PersistentUUID
      Parameters:
      persistentUUID - the persistent uuid to lookup
      Returns:
      the address of the node, null if no mapping is present
    • removePersistentAddressMapping

      void removePersistentAddressMapping(PersistentUUID persistentUUID)
      Removes any address mapping for the specified PersistentUUID
      Parameters:
      persistentUUID - the PersistentUUID for which to remove mappings
    • removePersistentAddressMapping

      void removePersistentAddressMapping(Address address)
      Removes any address mapping for the specified Address
      Parameters:
      address - the Address for which to remove mappings
    • mapAddresses

      List<PersistentUUID> mapAddresses(List<Address> addresses)
      Returns a list of PersistentUUIDs for the supplied Addresses
      Parameters:
      addresses -
      Returns:
    • addressToPersistentUUID

      UnaryOperator<Address> addressToPersistentUUID()
      Provides a remapping operator which translates addresses to persistentuuids
    • persistentUUIDToAddress

      UnaryOperator<Address> persistentUUIDToAddress()
      Provides a remapping operator which translates persistentuuids to addresses