Package org.somda.sdc.dpws.device
Interface Device
-
- All Superinterfaces:
com.google.common.util.concurrent.Service
- All Known Implementing Classes:
DeviceImpl
public interface Device extends com.google.common.util.concurrent.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
DeviceFactory.createDevice(DeviceSettings),getDiscoveryAccess()andgetHostingServiceAccess(). - Use
Service.startAsync()to start the device and send a WS-Discovery Hello. - To stop the device, invoke
Service.stopAsync(). This will send a WS-Discovery Bye.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,SubscriptionManager>getActiveSubscriptions()DiscoveryAccessgetDiscoveryAccess()Gets access to WS-Discovery in order to configure types and scopes.StringgetEprAddress()HostingServiceAccessgetHostingServiceAccess()Gets access to Hosting Service metadata and Hosted Services.
-
-
-
Method Detail
-
getDiscoveryAccess
DiscoveryAccess getDiscoveryAccess()
Gets access to WS-Discovery in order to configure types and scopes.- Returns:
- discovery access.
-
getHostingServiceAccess
HostingServiceAccess getHostingServiceAccess()
Gets access to Hosting Service metadata and Hosted Services.- Returns:
- hosting service access.
-
getEprAddress
String getEprAddress()
-
getActiveSubscriptions
Map<String,SubscriptionManager> getActiveSubscriptions()
-
-