Package org.somda.sdc.dpws.device
Interface Device
-
- All Implemented Interfaces:
-
com.google.common.util.concurrent.Service
public interface Device implements ServiceCore class to create a device that exposes itself to the network.
In order to get a device up and running, perform the following steps
- Configure the device appropriately by using createDevice, getDiscoveryAccess and getHostingServiceAccess.
- Use startAsync to start the device and send a WS-Discovery Hello.
- To stop the device, invoke stopAsync. This will send a WS-Discovery Bye.
-
-
Method Summary
Modifier and Type Method Description abstract DiscoveryAccessgetDiscoveryAccess()Gets access to WS-Discovery in order to configure types and scopes. abstract HostingServiceAccessgetHostingServiceAccess()Gets access to Hosting Service metadata and Hosted Services. abstract StringgetEprAddress()abstract Map<String, SubscriptionManager>getActiveSubscriptions()-
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
-
getDiscoveryAccess
abstract DiscoveryAccess getDiscoveryAccess()
Gets access to WS-Discovery in order to configure types and scopes.
- Returns:
discovery access.
-
getHostingServiceAccess
abstract HostingServiceAccess getHostingServiceAccess()
Gets access to Hosting Service metadata and Hosted Services.
- Returns:
hosting service access.
-
getEprAddress
abstract String getEprAddress()
-
getActiveSubscriptions
abstract Map<String, SubscriptionManager> getActiveSubscriptions()
-
-
-
-