Class HostingServiceResolver

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      ListenableFuture<HostingServiceProxy> resolveHostingService(DiscoveredDevice discoveredDevice, EventObserver clientEventObserver) Resolve hosting service and hosted service information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.