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

simple

## Class HelloWorld

- java.lang.Object
- - simple.HelloWorld

-     public class HelloWorld
      extends java.lang.Object

  Sample Hello World topology application. This Java application builds a simple topology that prints Hello World 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 the mechanics of declaring a topology and executing it.

  This may be executed from the `samples/java/functional` directory as:

  - `ant run.helloworld` - Using Apache Ant, this will run in embedded mode.
  - `java -jar funcsamples.jar:../com.ibm.streamsx.topology/lib/com.ibm.streamsx.topology.jar:$STREAMS_INSTALL/lib/com.ibm.streams.operator.samples.jar simple.HelloWorld [CONTEXT_TYPE]` - Run directly from the command line.
  If no arguments are provided then the topology is executed in embedded mode, within this JVM.
  CONTEXT_TYPE is one of:
  - `DISTRIBUTED` - Run as an IBM Streams distributed application.
  - `STANDALONE` - Run as an IBM Streams standalone application.
  - `EMBEDDED` - Run embedded within this JVM.
  - `BUNDLE` - Create an IBM Streams application bundle.
  - `TOOLKIT` - Create an IBM Streams application toolkit.
- An application execution within your IDE once you set the class path to include the correct jars.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HelloWorld()`

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### HelloWorld

          public HelloWorld()

  - ### Method Detail

    - #### main

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

      Sample Hello World topology application. This Java application builds a simple topology that prints Hello World 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` -
      Throws:
        `java.lang.Exception`