Interface PersistentUUIDManager

All Known Implementing Classes:
PersistentUUIDManagerImpl

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

    • addPersistentAddressMapping

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

      UUID getPersistentUuid(Address address)
      Retrieves the UUID 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(UUID persistentUUID)
      Retrieves the Address of a node given its UUID
      Parameters:
      persistentUUID - the persistent uuid to lookup
      Returns:
      the address of the node, null if no mapping is present
    • removePersistentAddressMapping

      void removePersistentAddressMapping(UUID persistentUUID)
      Removes any address mapping for the specified UUID
      Parameters:
      persistentUUID - the UUID 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<UUID> mapAddresses(List<Address> addresses)
      Returns a list of UUIDs for the supplied Addresses
      Parameters:
      addresses -
      Returns:
    • addressToPersistentUUID

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

      Function<UUID,Address> persistentUUIDToAddress()
      Provides a remapping operator which translates persistentuuids to addresses