public class TwillRuntimeSpecification extends Object
TwillApplication
.Constructor and Description |
---|
TwillRuntimeSpecification(TwillSpecification twillSpecification,
String fsUser,
URI twillAppDir,
String zkConnectStr,
RunId twillRunId,
String twillAppName,
String rmSchedulerAddr,
Map<String,Map<String,String>> logLevels,
Map<String,Integer> maxRetries,
Map<String,String> config,
Map<String,Map<String,String>> runnableConfigs) |
Modifier and Type | Method and Description |
---|---|
double |
getAMMinHeapRatio()
Returns the minimum heap ratio for the application master.
|
int |
getAMReservedMemory()
Returns the reserved non-heap memory size in MB for the application master.
|
Map<String,String> |
getConfig()
Returns the configuration for the application.
|
String |
getFsUser() |
String |
getKafkaZKConnect()
Returns the ZK connection string for the Kafka used for log collections,
or
null if log collection is disabled. |
Map<String,Map<String,String>> |
getLogLevels() |
Map<String,Integer> |
getMaxRetries() |
double |
getMinHeapRatio(String runnableName)
Returns the minimum heap ratio for the given runnable.
|
int |
getReservedMemory(String runnableName)
Returns the reserved non-heap memory size in MB for the given runnable.
|
String |
getRmSchedulerAddr() |
Map<String,Map<String,String>> |
getRunnableConfigs()
Returns the configurations for each runnable.
|
URI |
getTwillAppDir() |
String |
getTwillAppName() |
RunId |
getTwillAppRunId() |
TwillSpecification |
getTwillSpecification() |
String |
getZkConnectStr() |
boolean |
isLogCollectionEnabled()
Returns whether log collection is enabled.
|
public TwillRuntimeSpecification(TwillSpecification twillSpecification, String fsUser, URI twillAppDir, String zkConnectStr, RunId twillRunId, String twillAppName, @Nullable String rmSchedulerAddr, Map<String,Map<String,String>> logLevels, Map<String,Integer> maxRetries, Map<String,String> config, Map<String,Map<String,String>> runnableConfigs)
public TwillSpecification getTwillSpecification()
public String getFsUser()
public URI getTwillAppDir()
public String getZkConnectStr()
public RunId getTwillAppRunId()
public String getTwillAppName()
public double getAMMinHeapRatio()
public double getMinHeapRatio(String runnableName)
public int getAMReservedMemory()
public int getReservedMemory(String runnableName)
public boolean isLogCollectionEnabled()
public Map<String,Map<String,String>> getRunnableConfigs()
Copyright © 2013-2020 The Apache Software Foundation. All rights reserved.