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
Constructors -
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
-
Constructor Details
-
PersistentUUIDManagerImpl
public PersistentUUIDManagerImpl()
-
-
Method Details
-
addPersistentAddressMapping
Description copied from interface:PersistentUUIDManagerAdds a mapping between anAddressand aPersistentUUID- Specified by:
addPersistentAddressMappingin interfacePersistentUUIDManager- Parameters:
address-persistentUUID-
-
getPersistentUuid
Description copied from interface:PersistentUUIDManagerRetrieves thePersistentUUIDof a node given itsAddress- Specified by:
getPersistentUuidin interfacePersistentUUIDManager- Parameters:
address- the address to lookup- Returns:
- the persistentuuid of the node, null if no mapping is present
-
getAddress
Description copied from interface:PersistentUUIDManagerRetrieves theAddressof a node given itsPersistentUUID- Specified by:
getAddressin 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:PersistentUUIDManagerRemoves any address mapping for the specifiedPersistentUUID- Specified by:
removePersistentAddressMappingin interfacePersistentUUIDManager- Parameters:
persistentUUID- thePersistentUUIDfor which to remove mappings
-
removePersistentAddressMapping
Description copied from interface:PersistentUUIDManagerRemoves any address mapping for the specifiedAddress- Specified by:
removePersistentAddressMappingin interfacePersistentUUIDManager- Parameters:
address- theAddressfor which to remove mappings
-
mapAddresses
Description copied from interface:PersistentUUIDManagerReturns a list ofPersistentUUIDs for the suppliedAddresses- Specified by:
mapAddressesin interfacePersistentUUIDManager- Parameters:
addresses-- Returns:
-
addressToPersistentUUID
Description copied from interface:PersistentUUIDManagerProvides a remapping operator which translates addresses to persistentuuids- Specified by:
addressToPersistentUUIDin interfacePersistentUUIDManager
-
persistentUUIDToAddress
Description copied from interface:PersistentUUIDManagerProvides a remapping operator which translates persistentuuids to addresses- Specified by:
persistentUUIDToAddressin interfacePersistentUUIDManager
-