Class DeviceImpl

java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.somda.sdc.dpws.device.DeviceImpl
All Implemented Interfaces:
com.google.common.util.concurrent.Service, Device, DiscoveryAccess, HostingServiceAccess

public class DeviceImpl extends com.google.common.util.concurrent.AbstractIdleService implements Device, com.google.common.util.concurrent.Service, DiscoveryAccess, HostingServiceAccess
Default implementation of Device, DiscoveryAccess and HostingServiceAccess.

todo DGr no support for hosting and hosted services being updated during runtime.

  • 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
    void
    Adds a hosted service definition.
     
    Gets access to WS-Discovery in order to configure types and scopes.
     
    Gets access to Hosting Service metadata and Hosted Services.
    void
    Sends a Hello message to the network.
    void
    Sets the scopes in accordance with WS-Discovery.
    void
    setThisDevice(org.somda.sdc.dpws.model.ThisDeviceType thisDevice)
    Adds the ThisModel definition.
    void
    setThisModel(org.somda.sdc.dpws.model.ThisModelType thisModel)
    Updates the ThisModel definition.
    void
    Sets the types in accordance with WS-Discovery.
    protected void
     
    protected void
     

    Methods inherited from class com.google.common.util.concurrent.AbstractIdleService

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

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

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync