public class ClusterProperties extends Object
Constructor and Description |
---|
ClusterProperties() |
Modifier and Type | Method and Description |
---|---|
String |
clusterName() |
double |
cpusPerNode() |
void |
cpusPerNode(double cpu)
Sets CPU count limit.
|
static ClusterProperties |
from() |
static ClusterProperties |
from(String config) |
Pattern |
hostnameConstraint() |
void |
hostnameConstraint(Pattern pattern)
Sets hostname constraint.
|
String |
igniteCfg() |
String |
igniteLocalWorkDir() |
String |
ignitePath() |
String |
igniteReleasesDir() |
String |
igniteUrl() |
String |
igniteWorkDir() |
double |
instances() |
void |
instances(int nodeCnt)
Sets instance count limit.
|
String |
jvmOpts() |
String |
licencePath() |
double |
memoryOverHeadPerNode() |
void |
memoryOverHeadPerNode(double memOverHeadPerNode)
Sets memory overhead requested to YARN.
|
double |
memoryPerNode() |
void |
memoryPerNode(double mem)
Sets mem limit.
|
Map<String,String> |
toEnvs()
Convert to properties to map.
|
double |
totalMemoryPerNode() |
String |
userLibs() |
String |
yarnQueue() |
void |
yarnQueue(String queue)
Sets Yarn Queue
|
public static final String EMPTY_STRING
public static final String IGNITE_CLUSTER_NAME
public static final String DEFAULT_CLUSTER_NAME
public static final double DEFAULT_CPU_PER_NODE
public static final double DEFAULT_MEM_PER_NODE
public static final double DEFAULT_MINIMUM_MEM_OVERHEAD_PER_NODE
public static final String IGNITE_RUN_CPU_PER_NODE
public static final String IGNITE_MEMORY_PER_NODE
public static final String IGNITE_MEMORY_OVERHEAD_PER_NODE
public static final String IGNITE_NODE_COUNT
public static final double DEFAULT_IGNITE_NODE_COUNT
public static final String IGNITE_URL
public static final String IGNITE_WORKING_DIR
public static final String DEFAULT_IGNITE_WORK_DIR
public static final String IGNITE_PATH
public static final String LICENCE_PATH
public static final String IGNITE_JVM_OPTS
public static final String IGNITE_LOCAL_WORK_DIR
public static final String DEFAULT_IGNITE_LOCAL_WORK_DIR
public static final String IGNITE_RELEASES_DIR
public static final String DEFAULT_IGNITE_RELEASES_DIR
public static final String IGNITE_USERS_LIBS
public static final String IGNITE_CONFIG_XML
public static final String IGNITE_HOSTNAME_CONSTRAINT
public static final String IGNITE_YARN_QUEUE
public static final String DEFAULT_IGNITE_YARN_QUEUE
public String clusterName()
public double cpusPerNode()
public void cpusPerNode(double cpu)
public double memoryPerNode()
public void memoryPerNode(double mem)
mem
- Memory.public double memoryOverHeadPerNode()
public void memoryOverHeadPerNode(double memOverHeadPerNode)
memOverHeadPerNode
- Memory over head per node.public double totalMemoryPerNode()
public double instances()
public void instances(int nodeCnt)
public void hostnameConstraint(Pattern pattern)
pattern
- Hostname pattern.public void yarnQueue(String queue)
queue
- queue name.public String igniteUrl()
public String igniteWorkDir()
public String igniteLocalWorkDir()
public String igniteReleasesDir()
public String userLibs()
public String igniteCfg()
public String licencePath()
public String ignitePath()
public String jvmOpts()
public Pattern hostnameConstraint()
public String yarnQueue()
public static ClusterProperties from(String config)
config
- Path to config file.public static ClusterProperties from()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024