public class RemoteStreamEnvironment extends StreamExecutionEnvironment
currentEnvironment, DEFAULT_JOB_NAME, streamGraph| Constructor and Description |
|---|
RemoteStreamEnvironment(String host,
int port,
String... jarFiles)
Creates a new RemoteStreamEnvironment that points to the master
(JobManager) described by the given host name and port.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.JobExecutionResult |
execute()
Triggers the program execution.
|
org.apache.flink.api.common.JobExecutionResult |
execute(String jobName)
Triggers the program execution.
|
String |
getHost()
Gets the hostname of the master (JobManager), where the
program will be executed.
|
int |
getPort()
Gets the port of the master (JobManager), where the
program will be executed.
|
String |
toString() |
addDefaultKryoSerializer, addDefaultKryoSerializer, addSource, addSource, clean, createInput, createInput, createLocalEnvironment, createLocalEnvironment, createRemoteEnvironment, createRemoteEnvironment, disableOperatorChaining, enableCheckpointing, enableCheckpointing, enableCheckpointing, fromCollection, fromCollection, fromCollection, fromCollection, fromElements, fromParallelCollection, fromParallelCollection, generateParallelSequence, generateSequence, getBufferTimeout, getConfig, getDegreeOfParallelism, getExecutionEnvironment, getExecutionPlan, getNumberOfExecutionRetries, getParallelism, getStreamGraph, initializeFromFactory, readFile, readFileOfPrimitives, readFileOfPrimitives, readFileStream, readTextFile, readTextFile, readTextFileWithValue, readTextFileWithValue, registerType, registerTypeWithKryoSerializer, registerTypeWithKryoSerializer, setBufferTimeout, setDefaultLocalParallelism, setDegreeOfParallelism, setNumberOfExecutionRetries, setParallelism, setStateHandleProvider, socketTextStream, socketTextStream, socketTextStreampublic RemoteStreamEnvironment(String host, int port, String... jarFiles)
host - The host name or address of the master (JobManager), where the
program should be executed.port - The port of the master (JobManager), where the program should
be executed.jarFiles - The JAR files with code that needs to be shipped to the
cluster. If the program uses user-defined functions,
user-defined input formats, or any libraries, those must be
provided in the JAR files.public org.apache.flink.api.common.JobExecutionResult execute()
throws org.apache.flink.client.program.ProgramInvocationException
StreamExecutionEnvironmentexecute in class StreamExecutionEnvironmentorg.apache.flink.client.program.ProgramInvocationExceptionpublic org.apache.flink.api.common.JobExecutionResult execute(String jobName) throws org.apache.flink.client.program.ProgramInvocationException
StreamExecutionEnvironmentexecute in class StreamExecutionEnvironmentjobName - Desired name of the joborg.apache.flink.client.program.ProgramInvocationExceptionpublic String getHost()
public int getPort()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.