public interface FlinkResource extends ExternalResource
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(Configuration config)
Adds the given configuration to the existing configuration of this resource.
|
static FlinkResource |
get()
Returns the configured FlinkResource implementation, or a
LocalStandaloneFlinkResource if none is configured. |
ClusterController |
startCluster(int numTaskManagers)
Starts a cluster.
|
afterTestFailure, afterTestSuccess, apply, before
void addConfiguration(Configuration config) throws IOException
config
- config to addIOException
ClusterController startCluster(int numTaskManagers) throws IOException
The exact constellation of the cluster is undefined.
In the case of per-job clusters this method may not start any Flink processes, deferring this to
ClusterController.submitJob(JobSubmission)
.
numTaskManagers
- number of task managersIOException
static FlinkResource get()
LocalStandaloneFlinkResource
if none is configured.LocalStandaloneFlinkResource
is none is configuredCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.