Echo (Java Functional Samples)
Date: 2020-08-07

simple

## Class Echo

- java.lang.Object
- - simple.Echo

-     public class Echo
      extends java.lang.Object

  Sample echo topology application. This Java application builds a simple topology that echos its command line arguments to standard output.
  The application implements the typical pattern of code that declares a topology followed by submission of the topology to a Streams context `com.ibm.streamsx.topology.context.StreamsContext`.
  This demonstrates passing in values (the command line arguments) into a topology, so that the same application can produce different ouput depending on the passed in values.

  This topology is always executed in embedded mode, within this JVM.
  This may be executed from the `samples/java/functional` directory as:

  - `ant run.echo` - Using Apache Ant, this will run in embedded mode.
  - `java -cp functionalsamples.jar:../../../com.ibm.streamsx.topology/lib/com.ibm.streamsx.topology.jar:$STREAMS_INSTALL/lib/com.ibm.streams.operator.samples.jar simple.Echo text to echo` - Run directly from the command line in embedded mode.
  - An application execution within your IDE once you set the class path to include the correct jars.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Echo()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(java.lang.String[] args)` Sample Echo topology application.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Echo

          public Echo()

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.lang.Exception

      Sample Echo topology application. This Java application builds a simple topology that echos its command line arguments to standard output.
      The application implements the typical pattern of code that declares a topology followed by submission of the topology to a Streams context (@code com.ibm.streamsx.topology.context.StreamsContext}.
      Parameters:
        `args` - Arguments to be echoed to standard out.
      Throws:
        `java.lang.Exception`