public class ContaineredTaskManagerParameters extends Object implements Serializable
Constructor and Description |
---|
ContaineredTaskManagerParameters(long totalContainerMemoryMB,
long taskManagerHeapSizeMB,
long taskManagerDirectMemoryLimitMB,
int numSlots,
HashMap<String,String> taskManagerEnv) |
Modifier and Type | Method and Description |
---|---|
static long |
calculateCutoffMB(Configuration config,
long containerMemoryMB)
Calcuate cutoff memory size used by container, it will throw an
IllegalArgumentException
if the config is invalid or return the cutoff value if valid. |
static ContaineredTaskManagerParameters |
create(Configuration config,
long containerMemoryMB,
int numSlots)
Computes the parameters to be used to start a TaskManager Java process.
|
int |
numSlots() |
long |
taskManagerDirectMemoryLimitMB() |
Map<String,String> |
taskManagerEnv() |
long |
taskManagerHeapSizeMB() |
long |
taskManagerTotalMemoryMB() |
String |
toString() |
public long taskManagerTotalMemoryMB()
public long taskManagerHeapSizeMB()
public long taskManagerDirectMemoryLimitMB()
public int numSlots()
public static long calculateCutoffMB(Configuration config, long containerMemoryMB)
IllegalArgumentException
if the config is invalid or return the cutoff value if valid.config
- The Flink configuration.containerMemoryMB
- The size of the complete container, in megabytes.public static ContaineredTaskManagerParameters create(Configuration config, long containerMemoryMB, int numSlots)
config
- The Flink configuration.containerMemoryMB
- The size of the complete container, in megabytes.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.