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 thePersistentUUIDManager
interface- 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 void
addPersistentAddressMapping(Address address, PersistentUUID persistentUUID)
Adds a mapping between anAddress
and aPersistentUUID
UnaryOperator<Address>
addressToPersistentUUID()
Provides a remapping operator which translates addresses to persistentuuidsAddress
getAddress(PersistentUUID persistentUUID)
Retrieves theAddress
of a node given itsPersistentUUID
PersistentUUID
getPersistentUuid(Address address)
Retrieves thePersistentUUID
of a node given itsAddress
List<PersistentUUID>
mapAddresses(List<Address> addresses)
Returns a list ofPersistentUUID
s for the suppliedAddress
esUnaryOperator<Address>
persistentUUIDToAddress()
Provides 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 Detail
-
addPersistentAddressMapping
public void addPersistentAddressMapping(Address address, PersistentUUID persistentUUID)
Description copied from interface:PersistentUUIDManager
Adds a mapping between anAddress
and aPersistentUUID
- Specified by:
addPersistentAddressMapping
in interfacePersistentUUIDManager
-
getPersistentUuid
public PersistentUUID getPersistentUuid(Address address)
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
public Address getAddress(PersistentUUID persistentUUID)
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
public void removePersistentAddressMapping(PersistentUUID persistentUUID)
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
public void removePersistentAddressMapping(Address address)
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
public List<PersistentUUID> mapAddresses(List<Address> addresses)
Description copied from interface:PersistentUUIDManager
Returns a list ofPersistentUUID
s for the suppliedAddress
es- Specified by:
mapAddresses
in interfacePersistentUUIDManager
- Returns:
-
addressToPersistentUUID
public UnaryOperator<Address> addressToPersistentUUID()
Description copied from interface:PersistentUUIDManager
Provides a remapping operator which translates addresses to persistentuuids- Specified by:
addressToPersistentUUID
in interfacePersistentUUIDManager
-
persistentUUIDToAddress
public UnaryOperator<Address> persistentUUIDToAddress()
Description copied from interface:PersistentUUIDManager
Provides a remapping operator which translates persistentuuids to addresses- Specified by:
persistentUUIDToAddress
in interfacePersistentUUIDManager
-
-