Class StreamContextEnvironment

    • Method Detail

      • execute

        public JobExecutionResult execute​(StreamGraph streamGraph)
                                   throws Exception
        Description copied from class: StreamExecutionEnvironment
        Triggers the program execution. The environment will execute all parts of the program that have resulted in a "sink" operation. Sink operations are for example printing results or forwarding them to a message queue.
        Overrides:
        execute in class StreamExecutionEnvironment
        Parameters:
        streamGraph - the stream graph representing the transformations
        Returns:
        The result of the job execution, containing elapsed time and accumulators.
        Throws:
        Exception - which occurs during job execution.
      • executeAsync

        public JobClient executeAsync​(StreamGraph streamGraph)
                               throws Exception
        Description copied from class: StreamExecutionEnvironment
        Triggers the program execution asynchronously. The environment will execute all parts of the program that have resulted in a "sink" operation. Sink operations are for example printing results or forwarding them to a message queue.
        Overrides:
        executeAsync in class StreamExecutionEnvironment
        Parameters:
        streamGraph - the stream graph representing the transformations
        Returns:
        A JobClient that can be used to communicate with the submitted job, completed on submission succeeded.
        Throws:
        Exception - which occurs during job execution.
      • unsetAsContext

        public static void unsetAsContext()