rest

Class StreamsConnectionSample

  • java.lang.Object
    • rest.StreamsConnectionSample


  • public class StreamsConnectionSample
    extends java.lang.Object
    This is the main class to show how to use the StreamsConnectionInterface.

    The example connects to the streams instance and gets a list of resources The objects printed out include all the fields known in the JSON object per the REST api however, the classes may not have accessors for all objects

    The following arguments are required for the sample:

    • userName
    • password
    • rest url for the IBM Streams Instance (streamstool geturl --api)
    • instance name

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] args) 
      • Methods inherited from class java.lang.Object

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

      • main

        public static void main(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
streamsx.topology @ IBMStreams GitHub