Package com.example.consumer1
Class Consumer
-
- All Implemented Interfaces:
public class ConsumerThis is an example consumer which matches com.example.provider1.Provider in functionality
This consumer executes the following steps and prints whether each step was successful 1. discovery of device with specific endpoint 2. connect to device with specific endpoint 3. read mdib of provider 4. subscribe metrics, alerts, waveforms 5. check that least one patient context exists 6. check that at least one location context exists 7. check that the metric (see above) changes within 30 seconds at least 5 times 8. check that the alert condition (see above)change within 30 seconds at least 5 times 9. execute operations (Activate, SetString, SetValue) as specified and check that result is “finished”
-
-
Constructor Summary
Constructors Constructor Description Consumer(ConsumerUtil consumerUtil)Creates an SDC Consumer instance.
-
Method Summary
Modifier and Type Method Description ClientgetClient()SdcRemoteDevicesConnectorgetConnector()InjectorgetInjector()static voidmain(Array<String> args)-
-
Constructor Detail
-
Consumer
Consumer(ConsumerUtil consumerUtil)
Creates an SDC Consumer instance.- Parameters:
consumerUtil- utility containing injector and settings
-
-
Method Detail
-
getClient
Client getClient()
-
getConnector
SdcRemoteDevicesConnector getConnector()
-
getInjector
Injector getInjector()
-
-
-
-