Class ClientImpl

  • All Implemented Interfaces:
    com.google.common.util.concurrent.Service , org.somda.sdc.dpws.client.Client , org.somda.sdc.dpws.soap.wsdiscovery.HelloByeAndProbeMatchesObserver

    
    public final class ClientImpl
    extends AbstractIdleService implements Client, Service, HelloByeAndProbeMatchesObserver
                        

    Default implementation of Client.

    • Constructor Detail

    • Method Detail

      • probe

         Unit probe(DiscoveryFilter discoveryFilter)

        Probes for devices.

        This method synchronously sends a WS-Discovery Probe. All parties that subscribed to event messages by using registerDiscoveryObserver will be notified on found devices and probe ending.

      • directedProbe

         ListenableFuture<ProbeMatchesType> directedProbe(String xAddr)

        Sends a directed probe to a specific physical address.

        This method is an asynchronous unidirectional call; the result will not be notified to any subscribed parties.

        Returns:

        a future that holds the result of the directed probe.

      • resolve

         ListenableFuture<DiscoveredDevice> resolve(String eprAddress)

        Resolves physical addresses (XAddrs) of a device.

        This method is an asynchronous unidirectional call; the result will not be notified to any subscribed parties.

        Returns:

        a future that holds the result of the resolve.

      • connect

         ListenableFuture<HostingServiceProxy> connect(DiscoveredDevice discoveredDevice)

        Connects to a hosting service by using DiscoveredDevice.

        This function requires a fully populated DiscoveredDevice including XAddrs.

        By saying connect this method resolves a hosting service by using WS-TransferGet and hosted service information by using WS-MetadataExchange.

        Returns:

        a future that holds the result of the connect.

      • connect

         ListenableFuture<HostingServiceProxy> connect(String eprAddress)

        Connects to a hosting service by using an EPR address.

        Shortcut for first doing a resolve followed by a connect.

        Returns:

        a future that holds the result of the connect.