public class SchedulerContext extends Context
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADDITIONAL_PORTS |
static java.lang.String |
CLUSTER_TYPE |
static java.lang.String |
CONFIG_DIR |
static java.lang.String |
COPY_SYSTEM_PACKAGE |
static java.lang.String |
CORE_PACKAGE_FILENAME |
static java.lang.String |
CORE_PACKAGE_FILENAME_DEFAULT |
static java.lang.String |
CORE_PACKAGE_URL |
static java.lang.String |
DATACENTER_LABEL_KEY |
static java.lang.String |
DATACENTERS_LIST |
static java.lang.String |
DEBUG |
static java.lang.String |
DOWNLOAD_METHOD |
static java.lang.String |
DRIVER_CLASS |
static java.lang.String |
JOB_ARCHIVE_TEMP_DIR |
static java.lang.String |
JOB_DESCRIPTION_FILE_CMD_VAR |
static java.lang.String |
JOB_MASTER_PROVIDED_IP |
static java.lang.String |
JOB_PACKAGE_FILENAME |
static java.lang.String |
JOB_PACKAGE_FILENAME_DEFAULT |
static java.lang.String |
JOB_PACKAGE_URI |
static java.lang.String |
JOB_PACKAGE_URL |
static java.lang.String |
K8S_CHECK_PODS_REACHABLE |
static boolean |
K8S_CHECK_PODS_REACHABLE_DEFAULT |
static java.lang.String |
LAUNCHER_CLASS |
static java.lang.String |
NETWORK_INTERFACES |
static java.lang.String |
NFS_SERVER_ADDRESS |
static java.lang.String |
NFS_SERVER_PATH |
static java.lang.String |
PERSISTENT_VOLUME_PER_WORKER |
static double |
PERSISTENT_VOLUME_PER_WORKER_DEFAULT |
static java.lang.String |
RACK_LABEL_KEY |
static java.lang.String |
RACKS_LIST |
static java.lang.String |
SYSTEM_PACKAGE_URI |
static java.lang.String |
TEMPORARY_PACKAGES_PATH |
static java.lang.String |
THREADS_PER_WORKER |
static java.lang.String |
TWISTER_2_HOME
These are specified as system properties when deploying a job
|
static java.lang.String |
TWISTER2_PACKAGES_PATH |
static java.lang.String |
UPLOADER_CLASS |
static java.lang.String |
USER_JOB_FILE |
static java.lang.String |
USER_JOB_TYPE |
static java.lang.String |
WORKER_CLASS |
static java.lang.String |
WORKER_COMPUTE_RESOURCES |
static java.lang.String |
WORKING_DIRECTORY |
AURORA_SCRIPT, CHECKPOINT_YAML, CLUSTER, CLUSTER_CONF, CLUSTER_HOME, CORE_YAML, DATA_YAML, defaults, GRAPH_TYPE, HOME, JAVA_HOME, JOB, JOB_ARCHIVE_DIRECTORY, JOB_ID, JOB_NAME, JOB_OBJECT, NETWORK_YAML, OPERATION_NAME, OVERRIDE_YAML, RESOURCE_SCHEDULER_YAML, STREAMING, substitutions, TASK_YAML, TWISTER2_BANDWIDTH, TWISTER2_BIN, TWISTER2_CLUSTER_TYPE, TWISTER2_COMMON_CONF_DIR, TWISTER2_CONF, TWISTER2_CONTAINER_ID, TWISTER2_DIRECT_EDGE, TWISTER2_DIST, TWISTER2_GRAPH_JOB, TWISTER2_HOME, TWISTER2_LATENCY, TWISTER2_LIB, TWISTER2_MAX_TASK_INSTANCES_PER_WORKER, TWISTER2_TASK_INSTANCE_ODD_PARALLELISM, TWISTER2_TSET_JOB, TWISTER2_WORKER_INSTANCES, TWISTER2_WORKER_INSTANCES_DEFAULT, USER_NAME, VERBOSE
Constructor and Description |
---|
SchedulerContext() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
additionalPorts(Config cfg) |
static boolean |
checkPodsReachable(Config cfg) |
static boolean |
copySystemPackage(Config cfg) |
static java.lang.String |
corePackageFileName(Config cfg) |
static java.lang.String |
corePackageUrl(Config cfg) |
static java.lang.String |
createJobDescriptionFileName(java.lang.String jobID) |
static java.lang.String |
downloadMethod(Config cfg) |
static java.lang.String |
driverClass(Config cfg) |
static java.lang.String |
getJobMasterProvidedIp(Config cfg) |
static JobMasterAPI.NodeInfo |
getNodeInfo(Config cfg,
java.lang.String nodeIP) |
static boolean |
isLocalFileSystemUploader(Config cfg) |
static java.lang.String |
jobArchiveTempDirectory(Config cfg) |
static java.lang.String |
jobPackageFileName(Config cfg) |
static java.net.URI |
jobPackageUri(Config cfg) |
static java.lang.String |
jobPackageUrl(Config cfg) |
static java.lang.String |
launcherClass(Config cfg) |
static java.util.List<java.lang.String> |
networkInterfaces(Config cfg) |
static java.lang.String |
nfsServerAddress(Config cfg) |
static java.lang.String |
nfsServerPath(Config cfg) |
static int |
numberOfAdditionalPorts(Config cfg) |
static java.lang.String |
packagesPath(Config cfg) |
static double |
persistentVolumePerWorker(Config cfg) |
static boolean |
persistentVolumeRequested(Config cfg)
if persistentVolumePerWorker is more than zero, return true, otherwise false
|
static java.lang.String |
systemPackageUrl(Config cfg) |
static java.lang.String |
temporaryPackagesPath(Config cfg) |
static java.lang.String |
uploaderClass(Config cfg) |
static boolean |
useOpenMPI(Config cfg) |
static java.lang.String |
userJobJarFile(Config cfg) |
static java.lang.String |
userJobType(Config cfg) |
static java.lang.String |
workerClass(Config cfg) |
static int |
workerEndSyncWaitTime(Config cfg) |
auroraScript, checkpointCofigurationFile, checkpointConfigurationFile, clusterType, commonConfDir, conf, containerId, dataConfigurationFile, distDirectory, getDefaults, getDoublePropertyValue, getIntPropertyValue, getLongPropertyValue, getStringPropertyValue, isKubernetesCluster, jobId, jobName, libDirectory, networkConfigurationFile, resourceSchedulerConfigurationFile, systemConfigurationFile, taskConfigurationFile, twister2Home, userName, verbose, workerInstances
public static final java.lang.String LAUNCHER_CLASS
public static final java.lang.String UPLOADER_CLASS
public static final java.lang.String WORKER_CLASS
public static final java.lang.String DRIVER_CLASS
public static final java.lang.String THREADS_PER_WORKER
public static final java.lang.String JOB_ARCHIVE_TEMP_DIR
public static final java.lang.String SYSTEM_PACKAGE_URI
public static final java.lang.String JOB_PACKAGE_URI
public static final java.lang.String JOB_PACKAGE_URL
public static final java.lang.String CORE_PACKAGE_URL
public static final java.lang.String WORKER_COMPUTE_RESOURCES
public static final java.lang.String TWISTER_2_HOME
public static final java.lang.String CONFIG_DIR
public static final java.lang.String CLUSTER_TYPE
public static final java.lang.String USER_JOB_FILE
public static final java.lang.String USER_JOB_TYPE
public static final java.lang.String JOB_DESCRIPTION_FILE_CMD_VAR
public static final java.lang.String DEBUG
public static final java.lang.String WORKING_DIRECTORY
public static final java.lang.String CORE_PACKAGE_FILENAME_DEFAULT
public static final java.lang.String CORE_PACKAGE_FILENAME
public static final java.lang.String JOB_PACKAGE_FILENAME_DEFAULT
public static final java.lang.String JOB_PACKAGE_FILENAME
public static final java.lang.String TWISTER2_PACKAGES_PATH
public static final java.lang.String TEMPORARY_PACKAGES_PATH
public static final java.lang.String NFS_SERVER_ADDRESS
public static final java.lang.String NFS_SERVER_PATH
public static final double PERSISTENT_VOLUME_PER_WORKER_DEFAULT
public static final java.lang.String PERSISTENT_VOLUME_PER_WORKER
public static final java.lang.String RACK_LABEL_KEY
public static final java.lang.String DATACENTER_LABEL_KEY
public static final java.lang.String RACKS_LIST
public static final java.lang.String DATACENTERS_LIST
public static final java.lang.String ADDITIONAL_PORTS
public static final java.lang.String DOWNLOAD_METHOD
public static final java.lang.String COPY_SYSTEM_PACKAGE
public static final boolean K8S_CHECK_PODS_REACHABLE_DEFAULT
public static final java.lang.String K8S_CHECK_PODS_REACHABLE
public static final java.lang.String NETWORK_INTERFACES
public static final java.lang.String JOB_MASTER_PROVIDED_IP
public static java.lang.String uploaderClass(Config cfg)
public static boolean isLocalFileSystemUploader(Config cfg)
public static java.lang.String launcherClass(Config cfg)
public static java.lang.String workerClass(Config cfg)
public static java.lang.String driverClass(Config cfg)
public static java.lang.String packagesPath(Config cfg)
public static java.lang.String jobArchiveTempDirectory(Config cfg)
public static java.lang.String temporaryPackagesPath(Config cfg)
public static java.lang.String systemPackageUrl(Config cfg)
public static java.net.URI jobPackageUri(Config cfg)
public static java.lang.String jobPackageUrl(Config cfg)
public static java.lang.String corePackageUrl(Config cfg)
public static java.lang.String corePackageFileName(Config cfg)
public static java.lang.String jobPackageFileName(Config cfg)
public static java.lang.String userJobJarFile(Config cfg)
public static java.lang.String userJobType(Config cfg)
public static java.lang.String nfsServerAddress(Config cfg)
public static java.lang.String nfsServerPath(Config cfg)
public static double persistentVolumePerWorker(Config cfg)
public static boolean copySystemPackage(Config cfg)
public static boolean persistentVolumeRequested(Config cfg)
public static java.lang.String createJobDescriptionFileName(java.lang.String jobID)
public static int workerEndSyncWaitTime(Config cfg)
public static boolean useOpenMPI(Config cfg)
public static java.lang.String downloadMethod(Config cfg)
public static java.util.List<java.lang.String> additionalPorts(Config cfg)
public static int numberOfAdditionalPorts(Config cfg)
public static boolean checkPodsReachable(Config cfg)
public static java.util.List<java.lang.String> networkInterfaces(Config cfg)
public static JobMasterAPI.NodeInfo getNodeInfo(Config cfg, java.lang.String nodeIP)
public static java.lang.String getJobMasterProvidedIp(Config cfg)