Package org.infinispan.topology
Class PersistentUUIDManagerImpl
java.lang.Object
org.infinispan.topology.PersistentUUIDManagerImpl
- All Implemented Interfaces:
PersistentUUIDManager
Implementation of the
PersistentUUIDManager
interface- Since:
- 9.0
- Author:
- Tristan Tarrant
-
Constructor Summary
-
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
-
Constructor Details
-
PersistentUUIDManagerImpl
public PersistentUUIDManagerImpl()
-
-
Method Details
-
addPersistentAddressMapping
Description copied from interface:PersistentUUIDManager
Adds a mapping between anAddress
and aPersistentUUID
- Specified by:
addPersistentAddressMapping
in interfacePersistentUUIDManager
- Parameters:
address
-persistentUUID
-
-
getPersistentUuid
Description copied from interface:PersistentUUIDManager
Retrieves thePersistentUUID
of a node given itsAddress
- Specified by:
getPersistentUuid
in interfacePersistentUUIDManager
- Parameters:
address
- the address to lookup- Returns:
- the persistentuuid of the node, null if no mapping is present
-
getAddress
Description copied from interface:PersistentUUIDManager
Retrieves theAddress
of a node given itsPersistentUUID
- Specified by:
getAddress
in interfacePersistentUUIDManager
- Parameters:
persistentUUID
- the persistent uuid to lookup- Returns:
- the address of the node, null if no mapping is present
-
removePersistentAddressMapping
Description copied from interface:PersistentUUIDManager
Removes any address mapping for the specifiedPersistentUUID
- Specified by:
removePersistentAddressMapping
in interfacePersistentUUIDManager
- Parameters:
persistentUUID
- thePersistentUUID
for which to remove mappings
-
removePersistentAddressMapping
Description copied from interface:PersistentUUIDManager
Removes any address mapping for the specifiedAddress
- Specified by:
removePersistentAddressMapping
in interfacePersistentUUIDManager
- Parameters:
address
- theAddress
for which to remove mappings
-
mapAddresses
Description copied from interface:PersistentUUIDManager
Returns a list ofPersistentUUID
s for the suppliedAddress
es- Specified by:
mapAddresses
in interfacePersistentUUIDManager
- Parameters:
addresses
-- Returns:
-
addressToPersistentUUID
Description copied from interface:PersistentUUIDManager
Provides a remapping operator which translates addresses to persistentuuids- Specified by:
addressToPersistentUUID
in interfacePersistentUUIDManager
-
persistentUUIDToAddress
Description copied from interface:PersistentUUIDManager
Provides a remapping operator which translates persistentuuids to addresses- Specified by:
persistentUUIDToAddress
in interfacePersistentUUIDManager
-