Interface ITransportAddressService
-
public interface ITransportAddressService
Service for translating platform names to communication addresses and address book management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>
addLocalAddresses(java.util.Collection<TransportAddress> addresses)
Adds the addresses of the local platform.IFuture<java.lang.Void>
addManualAddresses(java.util.Collection<TransportAddress> addresses)
Adds the addresses of the local platform.IFuture<java.util.List<TransportAddress>>
getAddresses()
Gets the addresses of the local platform.IFuture<java.util.List<TransportAddress>>
getAddresses(IComponentIdentifier platformid)
Gets the addresses of another platform known to the local platform.IFuture<java.util.List<TransportAddress>>
getAddresses(IComponentIdentifier platformid, java.lang.String transporttype)
Gets the addresses of another platform known to the local platform.IFuture<java.util.List<TransportAddress>>
getAddresses(java.lang.String transporttype)
Gets the addresses of the local platform.IFuture<java.util.List<TransportAddress>>
resolveAddresses(IComponentIdentifier platformid, java.lang.String transporttype)
Resolves the addresses of a platform for a specific transport type using multiple methods.ISubscriptionIntermediateFuture<Tuple2<TransportAddress,java.lang.Boolean>>
subscribeToLocalAddresses()
Subscribe to local address changes.
-
-
-
Method Detail
-
getAddresses
IFuture<java.util.List<TransportAddress>> getAddresses()
Gets the addresses of the local platform.- Returns:
- Addresses of the local platform.
-
getAddresses
IFuture<java.util.List<TransportAddress>> getAddresses(java.lang.String transporttype)
Gets the addresses of the local platform.- Parameters:
transporttype
- The transport type.- Returns:
- Addresses of the local platform.
-
getAddresses
IFuture<java.util.List<TransportAddress>> getAddresses(IComponentIdentifier platformid)
Gets the addresses of another platform known to the local platform.- Parameters:
platformid
- ID of the platform.- Returns:
- Addresses of the platform, if known.
-
getAddresses
IFuture<java.util.List<TransportAddress>> getAddresses(IComponentIdentifier platformid, java.lang.String transporttype)
Gets the addresses of another platform known to the local platform.- Parameters:
platformid
- ID of the platform.transporttype
- The transport type.- Returns:
- Addresses of the platform, if known.
-
resolveAddresses
IFuture<java.util.List<TransportAddress>> resolveAddresses(IComponentIdentifier platformid, java.lang.String transporttype)
Resolves the addresses of a platform for a specific transport type using multiple methods.- Parameters:
platformid
- ID of the platform.transporttype
- The transport type.- Returns:
- Addresses of the local platform.
-
addLocalAddresses
IFuture<java.lang.Void> addLocalAddresses(java.util.Collection<TransportAddress> addresses)
Adds the addresses of the local platform.- Parameters:
addresses
- Local platform addresses.- Returns:
- Null, when done.
-
subscribeToLocalAddresses
ISubscriptionIntermediateFuture<Tuple2<TransportAddress,java.lang.Boolean>> subscribeToLocalAddresses()
Subscribe to local address changes.- Returns:
- Address and true if removed.
-
addManualAddresses
IFuture<java.lang.Void> addManualAddresses(java.util.Collection<TransportAddress> addresses)
Adds the addresses of the local platform.- Parameters:
addresses
- Local platform addresses.- Returns:
- Null, when done.
-
-