public class PersistentUUIDManagerImpl extends Object implements PersistentUUIDManager
PersistentUUIDManager
interfaceConstructor 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
PersistentUUID s for the supplied Address es |
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)
PersistentUUIDManager
Address
and a PersistentUUID
addPersistentAddressMapping
in interface PersistentUUIDManager
public PersistentUUID getPersistentUuid(Address address)
PersistentUUIDManager
PersistentUUID
of a node given its Address
getPersistentUuid
in interface PersistentUUIDManager
address
- the address to lookuppublic Address getAddress(PersistentUUID persistentUUID)
PersistentUUIDManager
Address
of a node given its PersistentUUID
getAddress
in interface PersistentUUIDManager
persistentUUID
- the persistent uuid to lookuppublic void removePersistentAddressMapping(PersistentUUID persistentUUID)
PersistentUUIDManager
PersistentUUID
removePersistentAddressMapping
in interface PersistentUUIDManager
persistentUUID
- the PersistentUUID
for which to remove mappingspublic void removePersistentAddressMapping(Address address)
PersistentUUIDManager
Address
removePersistentAddressMapping
in interface PersistentUUIDManager
address
- the Address
for which to remove mappingspublic List<PersistentUUID> mapAddresses(List<Address> addresses)
PersistentUUIDManager
PersistentUUID
s for the supplied Address
esmapAddresses
in interface PersistentUUIDManager
public UnaryOperator<Address> addressToPersistentUUID()
PersistentUUIDManager
addressToPersistentUUID
in interface PersistentUUIDManager
public UnaryOperator<Address> persistentUUIDToAddress()
PersistentUUIDManager
persistentUUIDToAddress
in interface PersistentUUIDManager
Copyright © 2021 JBoss by Red Hat. All rights reserved.