Change comments based on updated swagger spec (#23)
This commit is contained in:
Родитель
ccb1269193
Коммит
94c44b2714
|
@ -7,7 +7,7 @@ This README is based on the latest released version Azure Batch SDK (3.1.0). If
|
|||
The Azure Batch Libraries for Java is a higher-level, object-oriented API for interacting with the Azure Batch service.
|
||||
|
||||
|
||||
> **3.1.0** is a release that supports all features of Azure Batch service with API version "2018-03-01.6.1". We will be adding support for more new features and tweaking the API associated with Azure Batch service newer release.
|
||||
> **3.2.0** is a release that supports all features of Azure Batch service with API version "2018-03-01.6.1". We will be adding support for more new features and tweaking the API associated with Azure Batch service newer release.
|
||||
|
||||
**Azure Batch Authentication**
|
||||
|
||||
|
@ -112,7 +112,8 @@ If you would like to become an active contributor to this project please follow
|
|||
|
||||
| Version | SHA1 | Remarks |
|
||||
|-------------------|-------------------------------------------------------------------------------------------|-------------------------------------------------------|
|
||||
| 3.1.0 | [3.1.0](https://github.com/Azure/azure-batch-sdk-for-java/tree/master) | Tagged release for 3.1.0 version of Azure Batch libraries |
|
||||
| 3.2.0 | [3.2.0](https://github.com/Azure/azure-batch-sdk-for-java/tree/master) | Tagged release for 3.2.0 version of Azure Batch libraries |
|
||||
| 3.1.0 | [3.1.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v3.1.0) | Tagged release for 3.1.0 version of Azure Batch libraries |
|
||||
| 3.0.0 | [3.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v3.0.0) | Tagged release for 3.0.0 version of Azure Batch libraries |
|
||||
| 2.1.0 | [2.1.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v2.1.0) | Tagged release for 2.1.0 version of Azure Batch libraries |
|
||||
| 2.0.0 | [2.0.0](https://github.com/Azure/azure-batch-sdk-for-java/releases/tag/v2.0.0) | Tagged release for 2.0.0 version of Azure Batch libraries |
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
# Azure Batch SDK for Java release notes
|
||||
|
||||
## Changes in 3.2.0
|
||||
### Features
|
||||
- Update comments for some classes and properties.
|
||||
- Added the `leavingPool` property to `NodeCounts` class.
|
||||
|
||||
## Changes in 3.1.0
|
||||
### Features
|
||||
- Added the ability to query pool node counts by state, via the new `listPoolNodeCounts` method on `PoolOperations`.
|
||||
|
|
|
@ -65,7 +65,7 @@ import rx.Observable;
|
|||
public interface Jobs {
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the jobs in the specified account.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @throws BatchErrorException thrown if the request is rejected by server
|
||||
|
@ -76,7 +76,7 @@ public interface Jobs {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the jobs in the specified account.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
@ -86,7 +86,7 @@ public interface Jobs {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the jobs in the specified account.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the JobStatistics object
|
||||
|
@ -95,7 +95,7 @@ public interface Jobs {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the jobs in the specified account.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the JobStatistics object
|
||||
|
@ -103,7 +103,7 @@ public interface Jobs {
|
|||
Observable<ServiceResponseWithHeaders<JobStatistics, JobGetAllLifetimeStatisticsHeaders>> getAllLifetimeStatisticsWithServiceResponseAsync();
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the jobs in the specified account.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param jobGetAllLifetimeStatisticsOptions Additional parameters for the operation
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
@ -115,7 +115,7 @@ public interface Jobs {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the jobs in the specified account.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param jobGetAllLifetimeStatisticsOptions Additional parameters for the operation
|
||||
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
|
||||
|
@ -126,7 +126,7 @@ public interface Jobs {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the jobs in the specified account.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param jobGetAllLifetimeStatisticsOptions Additional parameters for the operation
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
@ -136,7 +136,7 @@ public interface Jobs {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the jobs in the specified account.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param jobGetAllLifetimeStatisticsOptions Additional parameters for the operation
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
|
|
@ -153,7 +153,7 @@ public interface Pools {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the pools in the specified account.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @throws BatchErrorException thrown if the request is rejected by server
|
||||
|
@ -164,7 +164,7 @@ public interface Pools {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the pools in the specified account.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
@ -174,7 +174,7 @@ public interface Pools {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the pools in the specified account.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the PoolStatistics object
|
||||
|
@ -183,7 +183,7 @@ public interface Pools {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the pools in the specified account.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
* @return the observable to the PoolStatistics object
|
||||
|
@ -191,7 +191,7 @@ public interface Pools {
|
|||
Observable<ServiceResponseWithHeaders<PoolStatistics, PoolGetAllLifetimeStatisticsHeaders>> getAllLifetimeStatisticsWithServiceResponseAsync();
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the pools in the specified account.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param poolGetAllLifetimeStatisticsOptions Additional parameters for the operation
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
@ -203,7 +203,7 @@ public interface Pools {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the pools in the specified account.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param poolGetAllLifetimeStatisticsOptions Additional parameters for the operation
|
||||
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
|
||||
|
@ -214,7 +214,7 @@ public interface Pools {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the pools in the specified account.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param poolGetAllLifetimeStatisticsOptions Additional parameters for the operation
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
@ -224,7 +224,7 @@ public interface Pools {
|
|||
|
||||
/**
|
||||
* Gets lifetime summary statistics for all of the pools in the specified account.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
|
||||
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*
|
||||
* @param poolGetAllLifetimeStatisticsOptions Additional parameters for the operation
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
|
|
@ -1730,7 +1730,7 @@ public class JobsImpl implements Jobs {
|
|||
|
||||
/**
|
||||
* Terminates the specified job, marking it as completed.
|
||||
* When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any active or running tasks associated with the job, and runs any required Job Release tasks. The job then moves into the completed state.
|
||||
* When a Terminate Job request is received, the Batch service sets the job to the terminating state. The Batch service then terminates any running tasks associated with the job and runs any required job release tasks. Then the job moves into the completed state. If there are any tasks in the job in the active state, they will remain in the active state. Once a job is terminated, new tasks cannot be added and any remaining active tasks will not be scheduled.
|
||||
*
|
||||
* @param jobId The ID of the job to terminate.
|
||||
* @throws IllegalArgumentException thrown if parameters fail the validation
|
||||
|
|
|
@ -188,7 +188,9 @@ public class CloudJob {
|
|||
private JobExecutionInformation executionInfo;
|
||||
|
||||
/**
|
||||
* Resource usage statistics for the entire lifetime of the job.
|
||||
* Resource usage statistics for the entire lifetime of the job. The
|
||||
* statistics may not be immediately available. The Batch service performs
|
||||
* periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*/
|
||||
@JsonProperty(value = "stats")
|
||||
private JobStatistics stats;
|
||||
|
|
|
@ -122,7 +122,9 @@ public class CloudJobSchedule {
|
|||
private List<MetadataItem> metadata;
|
||||
|
||||
/**
|
||||
* The lifetime resource usage statistics for the job schedule.
|
||||
* The lifetime resource usage statistics for the job schedule. The
|
||||
* statistics may not be immediately available. The Batch service performs
|
||||
* periodic roll-up of statistics. The typical delay is about 30 minutes.
|
||||
*/
|
||||
@JsonProperty(value = "stats")
|
||||
private JobScheduleStatistics stats;
|
||||
|
|
|
@ -100,7 +100,7 @@ public class CloudPool {
|
|||
* For information about available sizes of virtual machines for Cloud
|
||||
* Services pools (pools created with cloudServiceConfiguration), see Sizes
|
||||
* for Cloud Services
|
||||
* (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and
|
||||
* A2V2. For information about available VM sizes for pools using images
|
||||
* from the Virtual Machines Marketplace (pools created with
|
||||
|
@ -291,7 +291,9 @@ public class CloudPool {
|
|||
|
||||
/**
|
||||
* Utilization and resource usage statistics for the entire lifetime of the
|
||||
* pool.
|
||||
* pool. The statistics may not be immediately available. The Batch service
|
||||
* performs periodic roll-up of statistics. The typical delay is about 30
|
||||
* minutes.
|
||||
*/
|
||||
@JsonProperty(value = "stats")
|
||||
private PoolStatistics stats;
|
||||
|
|
|
@ -16,6 +16,16 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
|
||||
/**
|
||||
* An Azure Batch task.
|
||||
* Batch will retry tasks when a recovery operation is triggered on a compute
|
||||
* node. Examples of recovery operations include (but are not limited to) when
|
||||
* an unhealthy compute node is rebooted or a compute node disappeared due to
|
||||
* host failure. Retries due to recovery operations are independent of and are
|
||||
* not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is
|
||||
* 0, an internal retry due to a recovery operation may occur. Because of this,
|
||||
* all tasks should be idempotent. This means tasks need to tolerate being
|
||||
* interrupted and restarted without causing any corruption or duplicate data.
|
||||
* The best practice for long running tasks is to use some form of
|
||||
* checkpointing.
|
||||
*/
|
||||
public class CloudTask {
|
||||
/**
|
||||
|
@ -105,6 +115,10 @@ public class CloudTask {
|
|||
* environment variable expansion. If you want to take advantage of such
|
||||
* features, you should invoke the shell in the command line, for example
|
||||
* using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux.
|
||||
* If the command line refers to file paths, it should use a relative path
|
||||
* (relative to the task working directory), or use the Batch provided
|
||||
* environment variable
|
||||
* (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).
|
||||
*/
|
||||
@JsonProperty(value = "commandLine")
|
||||
private String commandLine;
|
||||
|
|
|
@ -97,7 +97,7 @@ public class ComputeNode {
|
|||
* For information about available sizes of virtual machines for Cloud
|
||||
* Services pools (pools created with cloudServiceConfiguration), see Sizes
|
||||
* for Cloud Services
|
||||
* (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and
|
||||
* A2V2. For information about available VM sizes for pools using images
|
||||
* from the Virtual Machines Marketplace (pools created with
|
||||
|
|
|
@ -27,7 +27,17 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
* task to restart. Note that a Job Manager task in one job does not have
|
||||
* priority over tasks in other jobs. Across jobs, only job level priorities
|
||||
* are observed. For example, if a Job Manager in a priority 0 job needs to be
|
||||
* restarted, it will not displace tasks of a priority 1 job.
|
||||
* restarted, it will not displace tasks of a priority 1 job. Batch will retry
|
||||
* tasks when a recovery operation is triggered on a compute node. Examples of
|
||||
* recovery operations include (but are not limited to) when an unhealthy
|
||||
* compute node is rebooted or a compute node disappeared due to host failure.
|
||||
* Retries due to recovery operations are independent of and are not counted
|
||||
* against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an
|
||||
* internal retry due to a recovery operation may occur. Because of this, all
|
||||
* tasks should be idempotent. This means tasks need to tolerate being
|
||||
* interrupted and restarted without causing any corruption or duplicate data.
|
||||
* The best practice for long running tasks is to use some form of
|
||||
* checkpointing.
|
||||
*/
|
||||
public class JobManagerTask {
|
||||
/**
|
||||
|
@ -52,7 +62,10 @@ public class JobManagerTask {
|
|||
* advantage of shell features such as environment variable expansion. If
|
||||
* you want to take advantage of such features, you should invoke the shell
|
||||
* in the command line, for example using "cmd /c MyCommand" in Windows or
|
||||
* "/bin/sh -c MyCommand" in Linux.
|
||||
* "/bin/sh -c MyCommand" in Linux. If the command line refers to file
|
||||
* paths, it should use a relative path (relative to the task working
|
||||
* directory), or use the Batch provided environment variable
|
||||
* (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).
|
||||
*/
|
||||
@JsonProperty(value = "commandLine", required = true)
|
||||
private String commandLine;
|
||||
|
@ -170,7 +183,7 @@ public class JobManagerTask {
|
|||
|
||||
/**
|
||||
* Whether the Job Manager task may run on a low-priority compute node.
|
||||
* The default value is false.
|
||||
* The default value is true.
|
||||
*/
|
||||
@JsonProperty(value = "allowLowPriorityNode")
|
||||
private Boolean allowLowPriorityNode;
|
||||
|
|
|
@ -32,7 +32,17 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
* before scheduling any other task of the job, if
|
||||
* rerunOnNodeRebootAfterSuccess is true or if the Job Preparation task did not
|
||||
* previously complete. If the compute node is reimaged, the Job Preparation
|
||||
* task is run again before scheduling any task of the job.
|
||||
* task is run again before scheduling any task of the job. Batch will retry
|
||||
* tasks when a recovery operation is triggered on a compute node. Examples of
|
||||
* recovery operations include (but are not limited to) when an unhealthy
|
||||
* compute node is rebooted or a compute node disappeared due to host failure.
|
||||
* Retries due to recovery operations are independent of and are not counted
|
||||
* against the maxTaskRetryCount. Even if the maxTaskRetryCount is 0, an
|
||||
* internal retry due to a recovery operation may occur. Because of this, all
|
||||
* tasks should be idempotent. This means tasks need to tolerate being
|
||||
* interrupted and restarted without causing any corruption or duplicate data.
|
||||
* The best practice for long running tasks is to use some form of
|
||||
* checkpointing.
|
||||
*/
|
||||
public class JobPreparationTask {
|
||||
/**
|
||||
|
@ -56,7 +66,10 @@ public class JobPreparationTask {
|
|||
* advantage of shell features such as environment variable expansion. If
|
||||
* you want to take advantage of such features, you should invoke the shell
|
||||
* in the command line, for example using "cmd /c MyCommand" in Windows or
|
||||
* "/bin/sh -c MyCommand" in Linux.
|
||||
* "/bin/sh -c MyCommand" in Linux. If the command line refers to file
|
||||
* paths, it should use a relative path (relative to the task working
|
||||
* directory), or use the Batch provided environment variable
|
||||
* (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).
|
||||
*/
|
||||
@JsonProperty(value = "commandLine", required = true)
|
||||
private String commandLine;
|
||||
|
|
|
@ -55,7 +55,10 @@ public class JobReleaseTask {
|
|||
* advantage of shell features such as environment variable expansion. If
|
||||
* you want to take advantage of such features, you should invoke the shell
|
||||
* in the command line, for example using "cmd /c MyCommand" in Windows or
|
||||
* "/bin/sh -c MyCommand" in Linux.
|
||||
* "/bin/sh -c MyCommand" in Linux. If the command line refers to file
|
||||
* paths, it should use a relative path (relative to the task working
|
||||
* directory), or use the Batch provided environment variable
|
||||
* (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).
|
||||
*/
|
||||
@JsonProperty(value = "commandLine", required = true)
|
||||
private String commandLine;
|
||||
|
|
|
@ -70,6 +70,12 @@ public class NodeCounts {
|
|||
@JsonProperty(value = "startTaskFailed", required = true)
|
||||
private int startTaskFailed;
|
||||
|
||||
/**
|
||||
* The number of nodes in the leavingPool state.
|
||||
*/
|
||||
@JsonProperty(value = "leavingPool", required = true)
|
||||
private int leavingPool;
|
||||
|
||||
/**
|
||||
* The number of nodes in the unknown state.
|
||||
*/
|
||||
|
@ -274,6 +280,26 @@ public class NodeCounts {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the leavingPool value.
|
||||
*
|
||||
* @return the leavingPool value
|
||||
*/
|
||||
public int leavingPool() {
|
||||
return this.leavingPool;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the leavingPool value.
|
||||
*
|
||||
* @param leavingPool the leavingPool value to set
|
||||
* @return the NodeCounts object itself.
|
||||
*/
|
||||
public NodeCounts withLeavingPool(int leavingPool) {
|
||||
this.leavingPool = leavingPool;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the unknown value.
|
||||
*
|
||||
|
|
|
@ -42,7 +42,7 @@ public class PoolAddParameter {
|
|||
* For information about available sizes of virtual machines for Cloud
|
||||
* Services pools (pools created with cloudServiceConfiguration), see Sizes
|
||||
* for Cloud Services
|
||||
* (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and
|
||||
* A2V2. For information about available VM sizes for pools using images
|
||||
* from the Virtual Machines Marketplace (pools created with
|
||||
|
|
|
@ -32,7 +32,7 @@ public class PoolSpecification {
|
|||
* For information about available sizes of virtual machines for Cloud
|
||||
* Services pools (pools created with cloudServiceConfiguration), see Sizes
|
||||
* for Cloud Services
|
||||
* (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
|
||||
* Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and
|
||||
* A2V2. For information about available VM sizes for pools using images
|
||||
* from the Virtual Machines Marketplace (pools created with
|
||||
|
|
|
@ -16,6 +16,16 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
/**
|
||||
* A task which is run when a compute node joins a pool in the Azure Batch
|
||||
* service, or when the compute node is rebooted or reimaged.
|
||||
* Batch will retry tasks when a recovery operation is triggered on a compute
|
||||
* node. Examples of recovery operations include (but are not limited to) when
|
||||
* an unhealthy compute node is rebooted or a compute node disappeared due to
|
||||
* host failure. Retries due to recovery operations are independent of and are
|
||||
* not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is
|
||||
* 0, an internal retry due to a recovery operation may occur. Because of this,
|
||||
* all tasks should be idempotent. This means tasks need to tolerate being
|
||||
* interrupted and restarted without causing any corruption or duplicate data.
|
||||
* The best practice for long running tasks is to use some form of
|
||||
* checkpointing.
|
||||
*/
|
||||
public class StartTask {
|
||||
/**
|
||||
|
@ -24,7 +34,10 @@ public class StartTask {
|
|||
* advantage of shell features such as environment variable expansion. If
|
||||
* you want to take advantage of such features, you should invoke the shell
|
||||
* in the command line, for example using "cmd /c MyCommand" in Windows or
|
||||
* "/bin/sh -c MyCommand" in Linux.
|
||||
* "/bin/sh -c MyCommand" in Linux. If the command line refers to file
|
||||
* paths, it should use a relative path (relative to the task working
|
||||
* directory), or use the Batch provided environment variable
|
||||
* (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).
|
||||
*/
|
||||
@JsonProperty(value = "commandLine", required = true)
|
||||
private String commandLine;
|
||||
|
|
|
@ -15,6 +15,16 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
|
||||
/**
|
||||
* An Azure Batch task to add.
|
||||
* Batch will retry tasks when a recovery operation is triggered on a compute
|
||||
* node. Examples of recovery operations include (but are not limited to) when
|
||||
* an unhealthy compute node is rebooted or a compute node disappeared due to
|
||||
* host failure. Retries due to recovery operations are independent of and are
|
||||
* not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is
|
||||
* 0, an internal retry due to a recovery operation may occur. Because of this,
|
||||
* all tasks should be idempotent. This means tasks need to tolerate being
|
||||
* interrupted and restarted without causing any corruption or duplicate data.
|
||||
* The best practice for long running tasks is to use some form of
|
||||
* checkpointing.
|
||||
*/
|
||||
public class TaskAddParameter {
|
||||
/**
|
||||
|
@ -44,6 +54,10 @@ public class TaskAddParameter {
|
|||
* environment variable expansion. If you want to take advantage of such
|
||||
* features, you should invoke the shell in the command line, for example
|
||||
* using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux.
|
||||
* If the command line refers to file paths, it should use a relative path
|
||||
* (relative to the task working directory), or use the Batch provided
|
||||
* environment variable
|
||||
* (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).
|
||||
*/
|
||||
@JsonProperty(value = "commandLine", required = true)
|
||||
private String commandLine;
|
||||
|
|
|
@ -40,12 +40,15 @@ public class TaskConstraints {
|
|||
/**
|
||||
* The maximum number of times the task may be retried. The Batch service
|
||||
* retries a task if its exit code is nonzero.
|
||||
* Note that this value specifically controls the number of retries. The
|
||||
* Batch service will try the task once, and may then retry up to this
|
||||
* limit. For example, if the maximum retry count is 3, Batch tries the
|
||||
* task up to 4 times (one initial try and 3 retries). If the maximum retry
|
||||
* count is 0, the Batch service does not retry the task. If the maximum
|
||||
* Note that this value specifically controls the number of retries for the
|
||||
* task executable due to a nonzero exit code. The Batch service will try
|
||||
* the task once, and may then retry up to this limit. For example, if the
|
||||
* maximum retry count is 3, Batch tries the task up to 4 times (one
|
||||
* initial try and 3 retries). If the maximum retry count is 0, the Batch
|
||||
* service does not retry the task after the first attempt. If the maximum
|
||||
* retry count is -1, the Batch service retries the task without limit.
|
||||
* Resource files and application packages are only downloaded again if the
|
||||
* task is retried on a new compute node.
|
||||
*/
|
||||
@JsonProperty(value = "maxTaskRetryCount")
|
||||
private Integer maxTaskRetryCount;
|
||||
|
|
|
@ -14,7 +14,10 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
|
||||
/**
|
||||
* The definition of the user identity under which the task is run.
|
||||
* Specify either the userName or autoUser property, but not both.
|
||||
* Specify either the userName or autoUser property, but not both. On
|
||||
* CloudServiceConfiguration pools, this user is logged in with the INTERACTIVE
|
||||
* flag. On Windows VirtualMachineConfiguration pools, this user is logged in
|
||||
* with the BATCH flag.
|
||||
*/
|
||||
public class UserIdentity {
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче