Package org.infinispan.topology
Interface PersistentUUIDManager
-
- All Known Implementing Classes:
PersistentUUIDManagerImpl
public interface PersistentUUIDManagerPersistentUUIDManager maintains a mapping ofPersistentUUIDs present in the cluster- Since:
- 9.0
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPersistentAddressMapping(Address address, PersistentUUID persistentUUID)Adds a mapping between anAddressand aPersistentUUIDUnaryOperator<Address>addressToPersistentUUID()Provides a remapping operator which translates addresses to persistentuuidsAddressgetAddress(PersistentUUID persistentUUID)Retrieves theAddressof a node given itsPersistentUUIDPersistentUUIDgetPersistentUuid(Address address)Retrieves thePersistentUUIDof a node given itsAddressList<PersistentUUID>mapAddresses(List<Address> addresses)Returns a list ofPersistentUUIDs for the suppliedAddressesUnaryOperator<Address>persistentUUIDToAddress()Provides 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 Detail
-
addPersistentAddressMapping
void addPersistentAddressMapping(Address address, PersistentUUID persistentUUID)
Adds a mapping between anAddressand aPersistentUUID- Parameters:
address-persistentUUID-
-
getPersistentUuid
PersistentUUID getPersistentUuid(Address address)
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
Address getAddress(PersistentUUID persistentUUID)
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
void removePersistentAddressMapping(PersistentUUID persistentUUID)
Removes any address mapping for the specifiedPersistentUUID- Parameters:
persistentUUID- thePersistentUUIDfor which to remove mappings
-
removePersistentAddressMapping
void removePersistentAddressMapping(Address address)
Removes any address mapping for the specifiedAddress- Parameters:
address- theAddressfor which to remove mappings
-
mapAddresses
List<PersistentUUID> mapAddresses(List<Address> addresses)
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
-
-