public abstract class AbstractTestBase extends TestBaseUtils
TestBaseUtils.TupleComparator<T extends org.apache.flink.api.java.tuple.Tuple>| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.configuration.Configuration |
config
Configuration to start the testing cluster with
|
protected org.apache.flink.test.util.ForkableFlinkMiniCluster |
executor
The mini cluster that runs the test programs
|
protected int |
numTaskManagers |
protected int |
taskManagerNumSlots |
DEFAULT_AKKA_ASK_TIMEOUT, DEFAULT_AKKA_STARTUP_TIMEOUT, DEFAULT_TIMEOUT, logDir, MINIMUM_HEAP_SIZE_MB, TASK_MANAGER_MEMORY_SIZE| Constructor and Description |
|---|
AbstractTestBase(org.apache.flink.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
File |
createAndRegisterTempFile(String fileName) |
String |
createTempFile(String fileName,
String contents) |
int |
getNumTaskManagers() |
int |
getTaskManagerNumSlots() |
String |
getTempDirPath(String dirName) |
String |
getTempFilePath(String fileName) |
void |
setNumTaskManagers(int numTaskManagers) |
void |
setTaskManagerNumSlots(int taskManagerNumSlots) |
void |
startCluster() |
void |
stopCluster() |
asFile, checkLinesAgainstRegexp, compareKeyValuePairsWithDelta, compareKeyValuePairsWithDelta, compareOrderedResultAsText, compareOrderedResultAsText, compareResultAsText, compareResultAsTuples, compareResultCollections, compareResultsByLinesInMemory, compareResultsByLinesInMemory, compareResultsByLinesInMemoryWithStrictOrder, compareResultsByLinesInMemoryWithStrictOrder, constructTestPath, constructTestURI, containsResultAsText, deleteRecursively, getFromHTTP, getResultInputStream, getResultInputStream, getResultReader, getResultReader, readAllResultLines, readAllResultLines, readAllResultLines, setEnv, startCluster, startCluster, stopCluster, toParameterList, toParameterListprotected final org.apache.flink.configuration.Configuration config
protected int taskManagerNumSlots
protected int numTaskManagers
protected org.apache.flink.test.util.ForkableFlinkMiniCluster executor
public AbstractTestBase(org.apache.flink.configuration.Configuration config)
public int getTaskManagerNumSlots()
public void setTaskManagerNumSlots(int taskManagerNumSlots)
public int getNumTaskManagers()
public void setNumTaskManagers(int numTaskManagers)
public String getTempDirPath(String dirName) throws IOException
IOExceptionpublic String getTempFilePath(String fileName) throws IOException
IOExceptionpublic String createTempFile(String fileName, String contents) throws IOException
IOExceptionpublic File createAndRegisterTempFile(String fileName) throws IOException
IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.