Interface Device

  • All Superinterfaces:
    com.google.common.util.concurrent.Service
    All Known Implementing Classes:
    DeviceImpl

    public interface Device
    extends com.google.common.util.concurrent.Service
    Core class to create a device that exposes itself to the network.

    In order to get a device up and running, perform the following steps

    1. Configure the device appropriately by using DeviceFactory.createDevice(DeviceSettings), getDiscoveryAccess() and getHostingServiceAccess().
    2. Use Service.startAsync() to start the device and send a WS-Discovery Hello.
    3. To stop the device, invoke Service.stopAsync(). This will send a WS-Discovery Bye.
    • Method Detail

      • getDiscoveryAccess

        DiscoveryAccess getDiscoveryAccess()
        Gets access to WS-Discovery in order to configure types and scopes.
        Returns:
        discovery access.
      • getHostingServiceAccess

        HostingServiceAccess getHostingServiceAccess()
        Gets access to Hosting Service metadata and Hosted Services.
        Returns:
        hosting service access.
      • getEprAddress

        String getEprAddress()