Package org.somda.sdc.dpws.client.helper
Class HostingServiceResolver
- java.lang.Object
-
- org.somda.sdc.dpws.client.helper.HostingServiceResolver
-
public class HostingServiceResolver extends Object
Helper class to resolve hosting service and hosted service information fromDiscoveredDeviceobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<HostingServiceProxy>resolveHostingService(DiscoveredDevice discoveredDevice)Resolve hosting service and hosted service information.
-
-
-
Method Detail
-
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.
-
-