Interface IAwarenessManagementService
-
public interface IAwarenessManagementService
Service for managing discovery infos.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Boolean>
addAwarenessInfo(AwarenessInfo info)
Announce an awareness info.IFuture<DiscoveryInfo>
getCachedPlatformInfo(IComponentIdentifier cid)
Get the discovery info from local cache , if any.IFuture<java.util.Collection<DiscoveryInfo>>
getKnownPlatforms()
Get the currently known platforms.IFuture<DiscoveryInfo>
getPlatformInfo(IComponentIdentifier cid)
Get the discovery info for a platform, if any.ISubscriptionIntermediateFuture<DiscoveryInfo>
subscribeToPlatformList(boolean include_initial)
Retrieve information about platforms as they appear or vanish.
-
-
-
Method Detail
-
addAwarenessInfo
IFuture<java.lang.Boolean> addAwarenessInfo(AwarenessInfo info)
Announce an awareness info.- Parameters:
info
- The info (passed as local reference).- Returns:
- True, if was a new awareness info.
-
getCachedPlatformInfo
IFuture<DiscoveryInfo> getCachedPlatformInfo(IComponentIdentifier cid)
Get the discovery info from local cache , if any.- Parameters:
cid
- The platform id.- Returns:
- The discovery info.
-
getPlatformInfo
IFuture<DiscoveryInfo> getPlatformInfo(IComponentIdentifier cid)
Get the discovery info for a platform, if any.- Parameters:
cid
- The platform id.- Returns:
- The discovery info.
-
getKnownPlatforms
IFuture<java.util.Collection<DiscoveryInfo>> getKnownPlatforms()
Get the currently known platforms.- Returns:
- The discovery infos of known platforms.
-
subscribeToPlatformList
ISubscriptionIntermediateFuture<DiscoveryInfo> subscribeToPlatformList(boolean include_initial)
Retrieve information about platforms as they appear or vanish.- Parameters:
include_initial
- If true, information about initially known platforms will be immediately posted to the caller. Otherwise only changes that happen after the subscription will be posted.- Returns:
- An intermediate future that is notified about any changes.
-
-