public final class RequestObjectBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
uploadMethod |
Modifier and Type | Method and Description |
---|---|
static void |
constructAffinity(V1PodSpec podSpec) |
static V1Container |
constructContainer(ComputeResource computeResource,
int containerIndex)
construct a container
|
static java.util.List<V1EnvVar> |
constructEnvironmentVariables(java.lang.String containerName,
int workerPort,
int jvmMem)
set environment variables for containers
|
static V1PodTemplateSpec |
constructPodTemplate(ComputeResource computeResource)
construct pod template
|
static V1ConfigMap |
createConfigMap(JobAPI.Job job)
create a ConfigMap object
It will have start counts for workers
|
static V1Service |
createHeadlessServiceObject(java.lang.String serviceName) |
static V1Service |
createJobServiceObject() |
static V1Service |
createNodePortServiceObject()
create service for NodePort
|
static V1Volume |
createPersistentVolume(java.lang.String claimName) |
static V1PersistentVolumeClaim |
createPersistentVolumeClaimObject(int numberOfWorkers) |
static V1PersistentVolume |
createPersistentVolumeObject(java.lang.String pvName)
we initially used this method to create PersistentVolumes
we no longer use this method
it is just here in case we may need it for some reason at one point
|
static V1Volume |
createSecretVolume(java.lang.String secretName) |
static V1StatefulSet |
createStatefulSetForWorkers(ComputeResource computeResource)
create StatefulSet object for a job
|
static V1Volume |
createVolatileVolume(double volumeSize) |
static java.util.ArrayList<V1EnvVar> |
getCommonEnvVars()
add common environment variables to both jm and workers
|
static java.lang.String |
getJobMasterIP() |
static void |
init(Config cnfg,
java.lang.String jID,
long jpFileSize,
long jobSubmitTime,
java.lang.String encodedNodeInfoStr) |
static void |
setNodeAffinity(V1Affinity affinity) |
static void |
setUniformMappingAffinity(V1Affinity affinity) |
static void |
setUploadMethod(java.lang.String uploadType) |
public static void init(Config cnfg, java.lang.String jID, long jpFileSize, long jobSubmitTime, java.lang.String encodedNodeInfoStr)
public static void setUploadMethod(java.lang.String uploadType)
public static java.lang.String getJobMasterIP()
public static V1StatefulSet createStatefulSetForWorkers(ComputeResource computeResource)
public static V1PodTemplateSpec constructPodTemplate(ComputeResource computeResource)
public static void constructAffinity(V1PodSpec podSpec)
public static V1Volume createVolatileVolume(double volumeSize)
public static V1Volume createPersistentVolume(java.lang.String claimName)
public static V1Volume createSecretVolume(java.lang.String secretName)
public static V1Container constructContainer(ComputeResource computeResource, int containerIndex)
public static java.util.List<V1EnvVar> constructEnvironmentVariables(java.lang.String containerName, int workerPort, int jvmMem)
public static java.util.ArrayList<V1EnvVar> getCommonEnvVars()
public static void setNodeAffinity(V1Affinity affinity)
public static void setUniformMappingAffinity(V1Affinity affinity)
public static V1Service createJobServiceObject()
public static V1Service createHeadlessServiceObject(java.lang.String serviceName)
public static V1Service createNodePortServiceObject()
public static V1PersistentVolume createPersistentVolumeObject(java.lang.String pvName)
public static V1PersistentVolumeClaim createPersistentVolumeClaimObject(int numberOfWorkers)
public static V1ConfigMap createConfigMap(JobAPI.Job job)