Class HostingServiceResolver


  • public class HostingServiceResolver
    extends Object
    Helper class to resolve hosting service and hosted service information from DiscoveredDevice objects.
    • Method Detail

      • resolveHostingService

        public com.google.common.util.concurrent.ListenableFuture<HostingServiceProxy> resolveHostingService​(DiscoveredDevice discoveredDevice)
        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.
        Returns:
        Future with resolved hosting service and hosted service information.