Class Consumer

  • All Implemented Interfaces:

    
    public class Consumer
    
                        

    This 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”

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final Client client
      public final SdcRemoteDevicesConnector connector
      public final Injector injector
    • Constructor Summary

      Constructors 
      Constructor Description
      Consumer(ConsumerUtil consumerUtil) Creates an SDC Consumer instance.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Client getClient()
      SdcRemoteDevicesConnector getConnector()
      Injector getInjector()
      static void main(Array<String> args)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Consumer

        Consumer(ConsumerUtil consumerUtil)
        Creates an SDC Consumer instance.
        Parameters:
        consumerUtil - utility containing injector and settings