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.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Gets access to WS-Discovery in order to configure types and scopes.
     
    Gets access to Hosting Service metadata and Hosted Services.

    Methods inherited from interface com.google.common.util.concurrent.Service

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
  • Method Details

    • 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()
    • getActiveSubscriptions

      Map<String,SubscriptionManager> getActiveSubscriptions()