Package org.infinispan.topology
Class PersistentUUIDManagerImpl
- java.lang.Object
-
- org.infinispan.topology.PersistentUUIDManagerImpl
-
- All Implemented Interfaces:
PersistentUUIDManager
public class PersistentUUIDManagerImpl extends Object implements PersistentUUIDManager
Implementation of thePersistentUUIDManagerinterface- Since:
- 9.0
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description PersistentUUIDManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
public void addPersistentAddressMapping(Address address, PersistentUUID persistentUUID)
Description copied from interface:PersistentUUIDManagerAdds a mapping between anAddressand aPersistentUUID- Specified by:
addPersistentAddressMappingin interfacePersistentUUIDManager
-
getPersistentUuid
public PersistentUUID getPersistentUuid(Address address)
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
public Address getAddress(PersistentUUID persistentUUID)
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
public void removePersistentAddressMapping(PersistentUUID persistentUUID)
Description copied from interface:PersistentUUIDManagerRemoves any address mapping for the specifiedPersistentUUID- Specified by:
removePersistentAddressMappingin interfacePersistentUUIDManager- Parameters:
persistentUUID- thePersistentUUIDfor which to remove mappings
-
removePersistentAddressMapping
public void removePersistentAddressMapping(Address address)
Description copied from interface:PersistentUUIDManagerRemoves any address mapping for the specifiedAddress- Specified by:
removePersistentAddressMappingin interfacePersistentUUIDManager- Parameters:
address- theAddressfor which to remove mappings
-
mapAddresses
public List<PersistentUUID> mapAddresses(List<Address> addresses)
Description copied from interface:PersistentUUIDManagerReturns a list ofPersistentUUIDs for the suppliedAddresses- Specified by:
mapAddressesin interfacePersistentUUIDManager- Returns:
-
addressToPersistentUUID
public UnaryOperator<Address> addressToPersistentUUID()
Description copied from interface:PersistentUUIDManagerProvides a remapping operator which translates addresses to persistentuuids- Specified by:
addressToPersistentUUIDin interfacePersistentUUIDManager
-
persistentUUIDToAddress
public UnaryOperator<Address> persistentUUIDToAddress()
Description copied from interface:PersistentUUIDManagerProvides a remapping operator which translates persistentuuids to addresses- Specified by:
persistentUUIDToAddressin interfacePersistentUUIDManager
-
-