public class MiniClusterWithClientResource
extends org.apache.flink.runtime.testutils.MiniClusterResource
| Constructor and Description |
|---|
MiniClusterWithClientResource(org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration miniClusterResourceConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
org.apache.flink.client.program.ClusterClient<?> |
getClusterClient() |
org.apache.flink.client.program.rest.RestClusterClient<?> |
getRestClusterClient()
Returns a
RestClusterClient that can be used to communicate with this mini cluster. |
TestEnvironment |
getTestEnvironment() |
public MiniClusterWithClientResource(org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration miniClusterResourceConfiguration)
public org.apache.flink.client.program.ClusterClient<?> getClusterClient()
public org.apache.flink.client.program.rest.RestClusterClient<?> getRestClusterClient()
throws Exception
RestClusterClient that can be used to communicate with this mini cluster.
Only use this if the client returned via getClusterClient() does not fulfill your
needs.Exceptionpublic TestEnvironment getTestEnvironment()
public void before()
throws Exception
before in class org.apache.flink.runtime.testutils.MiniClusterResourceExceptionpublic void after()
after in class org.apache.flink.runtime.testutils.MiniClusterResourceCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.