Package org.infinispan.topology
Interface PersistentUUIDManager
- All Known Implementing Classes:
PersistentUUIDManagerImpl
public interface PersistentUUIDManager
PersistentUUIDManager maintains a mapping of
PersistentUUID
s present in the cluster- Since:
- 9.0
- Author:
- Tristan Tarrant
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPersistentAddressMapping
(Address address, PersistentUUID persistentUUID) Adds a mapping between anAddress
and aPersistentUUID
Provides a remapping operator which translates addresses to persistentuuidsgetAddress
(PersistentUUID persistentUUID) Retrieves theAddress
of a node given itsPersistentUUID
getPersistentUuid
(Address address) Retrieves thePersistentUUID
of a node given itsAddress
mapAddresses
(List<Address> addresses) Returns a list ofPersistentUUID
s for the suppliedAddress
esProvides a remapping operator which translates persistentuuids to addressesvoid
removePersistentAddressMapping
(Address address) Removes any address mapping for the specifiedAddress
void
removePersistentAddressMapping
(PersistentUUID persistentUUID) Removes any address mapping for the specifiedPersistentUUID
-
Method Details
-
addPersistentAddressMapping
Adds a mapping between anAddress
and aPersistentUUID
- Parameters:
address
-persistentUUID
-
-
getPersistentUuid
Retrieves thePersistentUUID
of a node given itsAddress
- Parameters:
address
- the address to lookup- Returns:
- the persistentuuid of the node, null if no mapping is present
-
getAddress
Retrieves theAddress
of 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
- thePersistentUUID
for which to remove mappings
-
removePersistentAddressMapping
Removes any address mapping for the specifiedAddress
- Parameters:
address
- theAddress
for which to remove mappings
-
mapAddresses
Returns a list ofPersistentUUID
s for the suppliedAddress
es- 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
-