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() |
ClusterClient<?> |
getClusterClient() |
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 ClusterClient<?> getClusterClient()
public 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.Exception
public TestEnvironment getTestEnvironment()
public void before() throws Exception
before
in class org.apache.flink.runtime.testutils.MiniClusterResource
Exception
public void after()
after
in class org.apache.flink.runtime.testutils.MiniClusterResource
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.