public class MiniClusterWithClientResource
extends org.apache.flink.runtime.testutils.MiniClusterResource
| 构造器和说明 |
|---|
MiniClusterWithClientResource(org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration miniClusterResourceConfiguration) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 org.apache.flink.runtime.testutils.MiniClusterResourceExceptionpublic void after()
after 在类中 org.apache.flink.runtime.testutils.MiniClusterResourceCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.