Class Consumer


  • public class Consumer
    extends Object
    This is an example consumer which matches 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”

    • Method Detail

      • getClient

        public org.somda.sdc.dpws.client.Client getClient()
      • shutDown

        protected void shutDown()
      • parseCommandLineArgs

        public static org.apache.commons.cli.CommandLine parseCommandLineArgs​(String[] args)
        Parse command line arguments for epr address and network interface
        Parameters:
        args - array of arguments, as passed to main
        Returns:
        instance of parsed command line arguments