Package org.somda.sdc.dpws.client.helper
Class HostingServiceResolver
java.lang.Object
org.somda.sdc.dpws.client.helper.HostingServiceResolver
Helper class to resolve hosting service and hosted service information from
DiscoveredDevice objects.-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<HostingServiceProxy>resolveHostingService(DiscoveredDevice discoveredDevice) Resolve hosting service and hosted service information.
-
Method Details
-
resolveHostingService
public com.google.common.util.concurrent.ListenableFuture<HostingServiceProxy> resolveHostingService(DiscoveredDevice discoveredDevice) Resolve hosting service and hosted service information.Use given
DiscoveredDeviceobject 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-populatedDiscoveredDeviceobject, i.e., including XAddrs.- Returns:
- Future with resolved hosting service and hosted service information.
-