public class LocalStandaloneFlinkResource extends Object implements FlinkResource
Constructor and Description |
---|
LocalStandaloneFlinkResource() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(Configuration config)
Adds the given configuration to the existing configuration of this resource.
|
void |
afterTestFailure() |
void |
afterTestSuccess() |
void |
before() |
ClusterController |
startCluster(int numTaskManagers)
Starts a cluster.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
apply
public void before() throws Exception
before
in interface ExternalResource
Exception
public void afterTestSuccess()
afterTestSuccess
in interface ExternalResource
public void afterTestFailure()
afterTestFailure
in interface ExternalResource
public void addConfiguration(Configuration config) throws IOException
FlinkResource
addConfiguration
in interface FlinkResource
config
- config to addIOException
public ClusterController startCluster(int numTaskManagers) throws IOException
FlinkResource
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)
.
startCluster
in interface FlinkResource
numTaskManagers
- number of task managersIOException
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.