public class PersistentUUIDManagerImpl extends Object implements PersistentUUIDManager
PersistentUUIDManager interface| Constructor and Description |
|---|
PersistentUUIDManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPersistentAddressMapping(Address address,
PersistentUUID persistentUUID)
Adds a mapping between an
Address and a PersistentUUID |
UnaryOperator<Address> |
addressToPersistentUUID()
Provides a remapping operator which translates addresses to persistentuuids
|
Address |
getAddress(PersistentUUID persistentUUID)
Retrieves the
Address of a node given its PersistentUUID |
PersistentUUID |
getPersistentUuid(Address address)
Retrieves the
PersistentUUID of a node given its Address |
List<PersistentUUID> |
mapAddresses(List<Address> addresses)
Returns a list of
PersistentUUIDs for the supplied Addresses |
UnaryOperator<Address> |
persistentUUIDToAddress()
Provides a remapping operator which translates persistentuuids to addresses
|
void |
removePersistentAddressMapping(Address address)
Removes any address mapping for the specified
Address |
void |
removePersistentAddressMapping(PersistentUUID persistentUUID)
Removes any address mapping for the specified
PersistentUUID |
public void addPersistentAddressMapping(Address address, PersistentUUID persistentUUID)
PersistentUUIDManagerAddress and a PersistentUUIDaddPersistentAddressMapping in interface PersistentUUIDManagerpublic PersistentUUID getPersistentUuid(Address address)
PersistentUUIDManagerPersistentUUID of a node given its AddressgetPersistentUuid in interface PersistentUUIDManageraddress - the address to lookuppublic Address getAddress(PersistentUUID persistentUUID)
PersistentUUIDManagerAddress of a node given its PersistentUUIDgetAddress in interface PersistentUUIDManagerpersistentUUID - the persistent uuid to lookuppublic void removePersistentAddressMapping(PersistentUUID persistentUUID)
PersistentUUIDManagerPersistentUUIDremovePersistentAddressMapping in interface PersistentUUIDManagerpersistentUUID - the PersistentUUID for which to remove mappingspublic void removePersistentAddressMapping(Address address)
PersistentUUIDManagerAddressremovePersistentAddressMapping in interface PersistentUUIDManageraddress - the Address for which to remove mappingspublic List<PersistentUUID> mapAddresses(List<Address> addresses)
PersistentUUIDManagerPersistentUUIDs for the supplied AddressesmapAddresses in interface PersistentUUIDManagerpublic UnaryOperator<Address> addressToPersistentUUID()
PersistentUUIDManageraddressToPersistentUUID in interface PersistentUUIDManagerpublic UnaryOperator<Address> persistentUUIDToAddress()
PersistentUUIDManagerpersistentUUIDToAddress in interface PersistentUUIDManagerCopyright © 2021 JBoss by Red Hat. All rights reserved.