Package org.infinispan.topology
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 Summary
Modifier and TypeMethodDescriptionvoidaddPersistentAddressMapping(Address address, PersistentUUID persistentUUID) Adds a mapping between anAddressand aPersistentUUIDProvides a remapping operator which translates addresses to persistentuuidsgetAddress(PersistentUUID persistentUUID) Retrieves theAddressof a node given itsPersistentUUIDgetPersistentUuid(Address address) Retrieves thePersistentUUIDof a node given itsAddressmapAddresses(List<Address> addresses) Returns a list ofPersistentUUIDs for the suppliedAddressesProvides a remapping operator which translates persistentuuids to addressesvoidremovePersistentAddressMapping(Address address) Removes any address mapping for the specifiedAddressvoidremovePersistentAddressMapping(PersistentUUID persistentUUID) Removes any address mapping for the specifiedPersistentUUID
-
Method Details
-
addPersistentAddressMapping
Adds a mapping between anAddressand aPersistentUUID- Parameters:
address-persistentUUID-
-
getPersistentUuid
Retrieves thePersistentUUIDof a node given itsAddress- Parameters:
address- the address to lookup- Returns:
- the persistentuuid of the node, null if no mapping is present
-
getAddress
Retrieves theAddressof a node given itsPersistentUUID- Parameters:
persistentUUID- the persistent uuid to lookup- Returns:
- the address of the node, null if no mapping is present
-
removePersistentAddressMapping
Removes any address mapping for the specifiedPersistentUUID- Parameters:
persistentUUID- thePersistentUUIDfor which to remove mappings
-
removePersistentAddressMapping
Removes any address mapping for the specifiedAddress- Parameters:
address- theAddressfor which to remove mappings
-
mapAddresses
Returns a list ofPersistentUUIDs for the suppliedAddresses- 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
-