Class SdcRemoteDeviceImpl
- All Implemented Interfaces:
com.google.common.util.concurrent.Service,SdcRemoteDevice
-
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 TypeMethodDescriptionGets the hosting service proxy.Gets a localization service invoker access.Read access to the remote MDIB.Gets an interface to subscribe for MDIB updates.Gets a set service invoker access.voidregisterWatchdogObserver(WatchdogObserver watchdogObserver) In order to get notified on disconnect events, this function attaches a watchdog observer.protected voidshutDown()protected voidstartUp()voidunregisterWatchdogObserver(WatchdogObserver watchdogObserver) Removes a watchdog observer.Methods inherited from class com.google.common.util.concurrent.AbstractIdleService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.common.util.concurrent.Service
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
-
Method Details
-
getHostingServiceProxy
Description copied from interface:SdcRemoteDeviceGets the hosting service proxy.The hosting service proxy can be used to access the device including metadata and services.
- Specified by:
getHostingServiceProxyin interfaceSdcRemoteDevice- Returns:
- the hosting service proxy bundled with the SDC remote device instance.
-
getMdibAccess
Description copied from interface:SdcRemoteDeviceRead 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
SdcRemoteDevice.getHostingServiceProxy().- Specified by:
getMdibAccessin interfaceSdcRemoteDevice- Returns:
- MDIB access to read the remote MDIB.
-
getMdibAccessObservable
Description copied from interface:SdcRemoteDeviceGets an interface to subscribe for MDIB updates.- Specified by:
getMdibAccessObservablein interfaceSdcRemoteDevice- Returns:
- the MDIB observable interface.
-
getSetServiceAccess
Description copied from interface:SdcRemoteDeviceGets 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
SetServiceAccessinterface results in an immediately cancelled future.- Specified by:
getSetServiceAccessin interfaceSdcRemoteDevice- Returns:
- a set service invoker access interface.
- See Also:
-
registerWatchdogObserver
Description copied from interface:SdcRemoteDeviceIn order to get notified on disconnect events, this function attaches a watchdog observer.- Specified by:
registerWatchdogObserverin interfaceSdcRemoteDevice- Parameters:
watchdogObserver- the watchdog callback interface.
-
unregisterWatchdogObserver
Description copied from interface:SdcRemoteDeviceRemoves a watchdog observer.- Specified by:
unregisterWatchdogObserverin interfaceSdcRemoteDevice- Parameters:
watchdogObserver- the watchdog observer to remove.
-
getLocalizationServiceAccess
Description copied from interface:SdcRemoteDeviceGets 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
LocalizationServiceAccessinterface results in an immediately cancelled future.- Specified by:
getLocalizationServiceAccessin interfaceSdcRemoteDevice- Returns:
- a localization service invoker access interface.
- See Also:
-
startUp
- Specified by:
startUpin classcom.google.common.util.concurrent.AbstractIdleService- Throws:
TimeoutException
-
shutDown
protected void shutDown()- Specified by:
shutDownin classcom.google.common.util.concurrent.AbstractIdleService
-