Package org.somda.sdc.dpws.client.helper
Class HostingServiceResolver
-
- All Implemented Interfaces:
public class HostingServiceResolverHelper class to resolve hosting service and hosted service information from DiscoveredDevice objects.
-
-
Method Summary
Modifier and Type Method Description ListenableFuture<HostingServiceProxy>resolveHostingService(DiscoveredDevice discoveredDevice, EventObserver clientEventObserver)Resolve hosting service and hosted service information. -
-
Method Detail
-
resolveHostingService
ListenableFuture<HostingServiceProxy> resolveHostingService(DiscoveredDevice discoveredDevice, EventObserver clientEventObserver)
Resolve hosting service and hosted service information.
Use given DiscoveredDevice object to retrieve device UUID and metadata version of a device. If the device exists in the registry already and there is no new metadata version, the method returns with cached information.
If the device is not registered in the registry, or the stored metadata version is out-dated, then the method requests hosting service and hosted service information by using WS-Transfer Get, stores the information in the registry, and returns it.
- Parameters:
discoveredDevice- A well-populated DiscoveredDevice object, i.e., including XAddrs.clientEventObserver- An observer processing client events.- Returns:
Future with resolved hosting service and hosted service information.
-
-
-
-