Class JobCreateParameters
java.lang.Object
com.microsoft.azure.management.batchai.JobCreateParameters
Job creation parameters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet settings for Caffe2 job.Get settings for Caffe job.Get settings for Chainer job.cluster()
Get resource ID of the cluster on which this job will run.Get settings for CNTK (aka Microsoft Cognitive Toolkit) job.Get constraints associated with the Job.Get docker container settings for the job.Get settings for custom MPI job.Get settings for custom tool kit job.Get a list of user defined environment variables which will be setup for the job.Get settings for Horovod job.Get a list of input directories for the job.Get a command line to be executed on each node allocated for the job before tool kit is launched.Get information on mount volumes to be used by the job.int
Get number of compute nodes to run the job on.Get a list of output directories for the job.Get settings for pyTorch job.Get scheduling priority associated with the job.secrets()
Get a list of user defined environment variables with secret values which will be setup for the job.Get the path where the Batch AI service will store stdout, stderror and execution log of the job.Get settings for Tensor Flow job.withCaffe2Settings
(Caffe2Settings caffe2Settings) Set settings for Caffe2 job.withCaffeSettings
(CaffeSettings caffeSettings) Set settings for Caffe job.withChainerSettings
(ChainerSettings chainerSettings) Set settings for Chainer job.withCluster
(ResourceId cluster) Set resource ID of the cluster on which this job will run.withCntkSettings
(CNTKsettings cntkSettings) Set settings for CNTK (aka Microsoft Cognitive Toolkit) job.withConstraints
(JobBasePropertiesConstraints constraints) Set constraints associated with the Job.withContainerSettings
(ContainerSettings containerSettings) Set docker container settings for the job.withCustomMpiSettings
(CustomMpiSettings customMpiSettings) Set settings for custom MPI job.withCustomToolkitSettings
(CustomToolkitSettings customToolkitSettings) Set settings for custom tool kit job.withEnvironmentVariables
(List<EnvironmentVariable> environmentVariables) Set a list of user defined environment variables which will be setup for the job.withHorovodSettings
(HorovodSettings horovodSettings) Set settings for Horovod job.withInputDirectories
(List<InputDirectory> inputDirectories) Set a list of input directories for the job.withJobPreparation
(JobPreparation jobPreparation) Set a command line to be executed on each node allocated for the job before tool kit is launched.withMountVolumes
(MountVolumes mountVolumes) Set information on mount volumes to be used by the job.withNodeCount
(int nodeCount) Set number of compute nodes to run the job on.withOutputDirectories
(List<OutputDirectory> outputDirectories) Set a list of output directories for the job.withPyTorchSettings
(PyTorchSettings pyTorchSettings) Set settings for pyTorch job.withSchedulingPriority
(JobPriority schedulingPriority) Set scheduling priority associated with the job.Set a list of user defined environment variables with secret values which will be setup for the job.withStdOutErrPathPrefix
(String stdOutErrPathPrefix) Set the path where the Batch AI service will store stdout, stderror and execution log of the job.withTensorFlowSettings
(TensorFlowSettings tensorFlowSettings) Set settings for Tensor Flow job.
-
Constructor Details
-
JobCreateParameters
public JobCreateParameters()
-
-
Method Details
-
schedulingPriority
Get scheduling priority associated with the job. Possible values: low, normal, high. Possible values include: 'low', 'normal', 'high'.- Returns:
- the schedulingPriority value
-
withSchedulingPriority
Set scheduling priority associated with the job. Possible values: low, normal, high. Possible values include: 'low', 'normal', 'high'.- Parameters:
schedulingPriority
- the schedulingPriority value to set- Returns:
- the JobCreateParameters object itself.
-
cluster
Get resource ID of the cluster on which this job will run.- Returns:
- the cluster value
-
withCluster
Set resource ID of the cluster on which this job will run.- Parameters:
cluster
- the cluster value to set- Returns:
- the JobCreateParameters object itself.
-
mountVolumes
Get information on mount volumes to be used by the job. These volumes will be mounted before the job execution and will be unmouted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.- Returns:
- the mountVolumes value
-
withMountVolumes
Set information on mount volumes to be used by the job. These volumes will be mounted before the job execution and will be unmouted after the job completion. The volumes will be mounted at location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable.- Parameters:
mountVolumes
- the mountVolumes value to set- Returns:
- the JobCreateParameters object itself.
-
nodeCount
public int nodeCount()Get number of compute nodes to run the job on. The job will be gang scheduled on that many compute nodes.- Returns:
- the nodeCount value
-
withNodeCount
Set number of compute nodes to run the job on. The job will be gang scheduled on that many compute nodes.- Parameters:
nodeCount
- the nodeCount value to set- Returns:
- the JobCreateParameters object itself.
-
containerSettings
Get docker container settings for the job. If not provided, the job will run directly on the node.- Returns:
- the containerSettings value
-
withContainerSettings
Set docker container settings for the job. If not provided, the job will run directly on the node.- Parameters:
containerSettings
- the containerSettings value to set- Returns:
- the JobCreateParameters object itself.
-
cntkSettings
Get settings for CNTK (aka Microsoft Cognitive Toolkit) job.- Returns:
- the cntkSettings value
-
withCntkSettings
Set settings for CNTK (aka Microsoft Cognitive Toolkit) job.- Parameters:
cntkSettings
- the cntkSettings value to set- Returns:
- the JobCreateParameters object itself.
-
pyTorchSettings
Get settings for pyTorch job.- Returns:
- the pyTorchSettings value
-
withPyTorchSettings
Set settings for pyTorch job.- Parameters:
pyTorchSettings
- the pyTorchSettings value to set- Returns:
- the JobCreateParameters object itself.
-
tensorFlowSettings
Get settings for Tensor Flow job.- Returns:
- the tensorFlowSettings value
-
withTensorFlowSettings
Set settings for Tensor Flow job.- Parameters:
tensorFlowSettings
- the tensorFlowSettings value to set- Returns:
- the JobCreateParameters object itself.
-
caffeSettings
Get settings for Caffe job.- Returns:
- the caffeSettings value
-
withCaffeSettings
Set settings for Caffe job.- Parameters:
caffeSettings
- the caffeSettings value to set- Returns:
- the JobCreateParameters object itself.
-
caffe2Settings
Get settings for Caffe2 job.- Returns:
- the caffe2Settings value
-
withCaffe2Settings
Set settings for Caffe2 job.- Parameters:
caffe2Settings
- the caffe2Settings value to set- Returns:
- the JobCreateParameters object itself.
-
chainerSettings
Get settings for Chainer job.- Returns:
- the chainerSettings value
-
withChainerSettings
Set settings for Chainer job.- Parameters:
chainerSettings
- the chainerSettings value to set- Returns:
- the JobCreateParameters object itself.
-
customToolkitSettings
Get settings for custom tool kit job.- Returns:
- the customToolkitSettings value
-
withCustomToolkitSettings
Set settings for custom tool kit job.- Parameters:
customToolkitSettings
- the customToolkitSettings value to set- Returns:
- the JobCreateParameters object itself.
-
customMpiSettings
Get settings for custom MPI job.- Returns:
- the customMpiSettings value
-
withCustomMpiSettings
Set settings for custom MPI job.- Parameters:
customMpiSettings
- the customMpiSettings value to set- Returns:
- the JobCreateParameters object itself.
-
horovodSettings
Get settings for Horovod job.- Returns:
- the horovodSettings value
-
withHorovodSettings
Set settings for Horovod job.- Parameters:
horovodSettings
- the horovodSettings value to set- Returns:
- the JobCreateParameters object itself.
-
jobPreparation
Get a command line to be executed on each node allocated for the job before tool kit is launched.- Returns:
- the jobPreparation value
-
withJobPreparation
Set a command line to be executed on each node allocated for the job before tool kit is launched.- Parameters:
jobPreparation
- the jobPreparation value to set- Returns:
- the JobCreateParameters object itself.
-
stdOutErrPathPrefix
Get the path where the Batch AI service will store stdout, stderror and execution log of the job.- Returns:
- the stdOutErrPathPrefix value
-
withStdOutErrPathPrefix
Set the path where the Batch AI service will store stdout, stderror and execution log of the job.- Parameters:
stdOutErrPathPrefix
- the stdOutErrPathPrefix value to set- Returns:
- the JobCreateParameters object itself.
-
inputDirectories
Get a list of input directories for the job.- Returns:
- the inputDirectories value
-
withInputDirectories
Set a list of input directories for the job.- Parameters:
inputDirectories
- the inputDirectories value to set- Returns:
- the JobCreateParameters object itself.
-
outputDirectories
Get a list of output directories for the job.- Returns:
- the outputDirectories value
-
withOutputDirectories
Set a list of output directories for the job.- Parameters:
outputDirectories
- the outputDirectories value to set- Returns:
- the JobCreateParameters object itself.
-
environmentVariables
Get a list of user defined environment variables which will be setup for the job.- Returns:
- the environmentVariables value
-
withEnvironmentVariables
Set a list of user defined environment variables which will be setup for the job.- Parameters:
environmentVariables
- the environmentVariables value to set- Returns:
- the JobCreateParameters object itself.
-
secrets
Get a list of user defined environment variables with secret values which will be setup for the job. Server will never report values of these variables back.- Returns:
- the secrets value
-
withSecrets
Set a list of user defined environment variables with secret values which will be setup for the job. Server will never report values of these variables back.- Parameters:
secrets
- the secrets value to set- Returns:
- the JobCreateParameters object itself.
-
constraints
Get constraints associated with the Job.- Returns:
- the constraints value
-
withConstraints
Set constraints associated with the Job.- Parameters:
constraints
- the constraints value to set- Returns:
- the JobCreateParameters object itself.
-