Class SdcRemoteDeviceImpl

  • All Implemented Interfaces:
    com.google.common.util.concurrent.Service , org.somda.sdc.glue.consumer.SdcRemoteDevice

    
    public final class SdcRemoteDeviceImpl
    extends AbstractIdleService implements SdcRemoteDevice
                        

    Default implementation of SdcRemoteDevice.

    • Constructor Detail

    • Method Detail

      • getHostingServiceProxy

         HostingServiceProxy getHostingServiceProxy()

        Gets the hosting service proxy.

        The hosting service proxy can be used to access the device including metadata and services.

        Returns:

        the hosting service proxy bundled with the SDC remote device instance.

      • getMdibAccess

         RemoteMdibAccess getMdibAccess()

        Read access to the remote MDIB.

        The remote MDIB is updated by a background process that processes incoming reports. In order to manually access Web Services, one can use getHostingServiceProxy.

        Returns:

        MDIB access to read the remote MDIB.

      • getMdibAccessObservable

         MdibAccessObservable getMdibAccessObservable()

        Gets an interface to subscribe for MDIB updates.

        Returns:

        the MDIB observable interface.

      • getSetServiceAccess

         SetServiceAccess getSetServiceAccess()

        Gets a set service invoker access.

        Please note that the set service access only works if the context and/or set service are available from the remote device. If not set service exists, any call to the SetServiceAccess interface results in an immediately cancelled future.

        Returns:

        a set service invoker access interface.

      • getLocalizationServiceAccess

         LocalizationServiceAccess getLocalizationServiceAccess()

        Gets a localization service invoker access.

        Please note that the localization service access only works if the service is available from the remote device. If no localization service exists, any call to the LocalizationServiceAccess interface results in an immediately cancelled future.

        Returns:

        a localization service invoker access interface.