@InterfaceStability.Unstable public interface ExecutionEnvironment
StreamGraph
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ENVIRONMENT_CLASS |
static java.lang.String |
ENVIRONMENT_CONFIG |
Modifier and Type | Method and Description |
---|---|
static ExecutionEnvironment |
fromConfig(Config config)
Static method to load the non-standalone environment.
|
static ExecutionEnvironment |
getLocalEnvironment(Config config)
Static method to load the local standalone environment
|
void |
run(StreamGraphBuilder graphBuilder,
Config config)
Method to be invoked to deploy and run the actual Samza jobs to execute
StreamGraph |
static final java.lang.String ENVIRONMENT_CONFIG
static final java.lang.String DEFAULT_ENVIRONMENT_CLASS
static ExecutionEnvironment getLocalEnvironment(Config config)
config
- configuration passed in to initialize the Samza standalone processExecutionEnvironment
to run the user-defined stream applicationsstatic ExecutionEnvironment fromConfig(Config config)
config
- configuration passed in to initialize the Samza processesExecutionEnvironment
to run the user-defined stream applicationsvoid run(StreamGraphBuilder graphBuilder, Config config)
StreamGraph
graphBuilder
- the user-defined StreamGraphBuilder
objectconfig
- the Config
object for this job