Interface SdcRemoteDevice
-
- All Implemented Interfaces:
-
com.google.common.util.concurrent.Service
public interface SdcRemoteDevice implements ServiceSDC consumer device interface.
The purpose of SdcRemoteDevice is to receive SDC data from the network.
-
-
Method Summary
Modifier and Type Method Description abstract HostingServiceProxygetHostingServiceProxy()Gets the hosting service proxy. abstract MdibAccessgetMdibAccess()Read access to the remote MDIB. abstract MdibAccessObservablegetMdibAccessObservable()Gets an interface to subscribe for MDIB updates. abstract SetServiceAccessgetSetServiceAccess()Gets a set service invoker access. abstract voidregisterWatchdogObserver(WatchdogObserver watchdogObserver)In order to get notified on disconnect events, this function attaches a watchdog observer. abstract voidunregisterWatchdogObserver(WatchdogObserver watchdogObserver)Removes a watchdog observer. abstract LocalizationServiceAccessgetLocalizationServiceAccess()Gets a localization service invoker access. -
Methods inherited from class com.google.common.util.concurrent.Service
addListener, awaitRunning, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getHostingServiceProxy
abstract 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
abstract MdibAccess 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
abstract MdibAccessObservable getMdibAccessObservable()
Gets an interface to subscribe for MDIB updates.
- Returns:
the MDIB observable interface.
-
getSetServiceAccess
abstract 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.
-
registerWatchdogObserver
abstract void registerWatchdogObserver(WatchdogObserver watchdogObserver)
In order to get notified on disconnect events, this function attaches a watchdog observer.
- Parameters:
watchdogObserver- the watchdog callback interface.
-
unregisterWatchdogObserver
abstract void unregisterWatchdogObserver(WatchdogObserver watchdogObserver)
Removes a watchdog observer.
- Parameters:
watchdogObserver- the watchdog observer to remove.
-
getLocalizationServiceAccess
abstract 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.
-
-
-
-