Package org.infinispan.topology
Interface PersistentUUIDManager
-
- All Known Implementing Classes:
PersistentUUIDManagerImpl
public interface PersistentUUIDManager
PersistentUUIDManager maintains a mapping ofPersistentUUID
s present in the cluster- Since:
- 9.0
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Abstract 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
void addPersistentAddressMapping(Address address, PersistentUUID persistentUUID)
Adds a mapping between anAddress
and aPersistentUUID
- Parameters:
address
-persistentUUID
-
-
getPersistentUuid
PersistentUUID getPersistentUuid(Address address)
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
Address getAddress(PersistentUUID persistentUUID)
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
void removePersistentAddressMapping(PersistentUUID persistentUUID)
Removes any address mapping for the specifiedPersistentUUID
- Parameters:
persistentUUID
- thePersistentUUID
for which to remove mappings
-
removePersistentAddressMapping
void removePersistentAddressMapping(Address address)
Removes any address mapping for the specifiedAddress
- Parameters:
address
- theAddress
for which to remove mappings
-
mapAddresses
List<PersistentUUID> mapAddresses(List<Address> addresses)
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
-
-