Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 94c44b2

Browse files
authored
Change comments based on updated swagger spec (#23)
1 parent ccb1269 commit 94c44b2

20 files changed

+153
-39
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This README is based on the latest released version Azure Batch SDK (3.1.0). If
77
The Azure Batch Libraries for Java is a higher-level, object-oriented API for interacting with the Azure Batch service.
88

99

10-
> **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.
10+
> **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.
1111
1212
**Azure Batch Authentication**
1313

@@ -112,7 +112,8 @@ If you would like to become an active contributor to this project please follow
112112

113113
| Version | SHA1 | Remarks |
114114
|-------------------|-------------------------------------------------------------------------------------------|-------------------------------------------------------|
115-
| 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 |
115+
| 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 |
116+
| 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 |
116117
| 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 |
117118
| 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 |
118119
| 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 |

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Azure Batch SDK for Java release notes
22

3+
## Changes in 3.2.0
4+
### Features
5+
- Update comments for some classes and properties.
6+
- Added the `leavingPool` property to `NodeCounts` class.
7+
38
## Changes in 3.1.0
49
### Features
510
- Added the ability to query pool node counts by state, via the new `listPoolNodeCounts` method on `PoolOperations`.

src/main/java/com/microsoft/azure/batch/protocol/Jobs.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
public interface Jobs {
6666
/**
6767
* Gets lifetime summary statistics for all of the jobs in the specified account.
68-
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
68+
* 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.
6969
*
7070
* @throws IllegalArgumentException thrown if parameters fail the validation
7171
* @throws BatchErrorException thrown if the request is rejected by server
@@ -76,7 +76,7 @@ public interface Jobs {
7676

7777
/**
7878
* Gets lifetime summary statistics for all of the jobs in the specified account.
79-
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
79+
* 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.
8080
*
8181
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
8282
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -86,7 +86,7 @@ public interface Jobs {
8686

8787
/**
8888
* Gets lifetime summary statistics for all of the jobs in the specified account.
89-
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
89+
* 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.
9090
*
9191
* @throws IllegalArgumentException thrown if parameters fail the validation
9292
* @return the observable to the JobStatistics object
@@ -95,15 +95,15 @@ public interface Jobs {
9595

9696
/**
9797
* Gets lifetime summary statistics for all of the jobs in the specified account.
98-
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
98+
* 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.
9999
*
100100
* @throws IllegalArgumentException thrown if parameters fail the validation
101101
* @return the observable to the JobStatistics object
102102
*/
103103
Observable<ServiceResponseWithHeaders<JobStatistics, JobGetAllLifetimeStatisticsHeaders>> getAllLifetimeStatisticsWithServiceResponseAsync();
104104
/**
105105
* Gets lifetime summary statistics for all of the jobs in the specified account.
106-
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
106+
* 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.
107107
*
108108
* @param jobGetAllLifetimeStatisticsOptions Additional parameters for the operation
109109
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -115,7 +115,7 @@ public interface Jobs {
115115

116116
/**
117117
* Gets lifetime summary statistics for all of the jobs in the specified account.
118-
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
118+
* 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.
119119
*
120120
* @param jobGetAllLifetimeStatisticsOptions Additional parameters for the operation
121121
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -126,7 +126,7 @@ public interface Jobs {
126126

127127
/**
128128
* Gets lifetime summary statistics for all of the jobs in the specified account.
129-
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
129+
* 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.
130130
*
131131
* @param jobGetAllLifetimeStatisticsOptions Additional parameters for the operation
132132
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -136,7 +136,7 @@ public interface Jobs {
136136

137137
/**
138138
* Gets lifetime summary statistics for all of the jobs in the specified account.
139-
* Statistics are aggregated across all jobs that have ever existed in the account, from account creation to the last update time of the statistics.
139+
* 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.
140140
*
141141
* @param jobGetAllLifetimeStatisticsOptions Additional parameters for the operation
142142
* @throws IllegalArgumentException thrown if parameters fail the validation

src/main/java/com/microsoft/azure/batch/protocol/Pools.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public interface Pools {
153153

154154
/**
155155
* Gets lifetime summary statistics for all of the pools in the specified account.
156-
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
156+
* 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.
157157
*
158158
* @throws IllegalArgumentException thrown if parameters fail the validation
159159
* @throws BatchErrorException thrown if the request is rejected by server
@@ -164,7 +164,7 @@ public interface Pools {
164164

165165
/**
166166
* Gets lifetime summary statistics for all of the pools in the specified account.
167-
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
167+
* 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.
168168
*
169169
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
170170
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -174,7 +174,7 @@ public interface Pools {
174174

175175
/**
176176
* Gets lifetime summary statistics for all of the pools in the specified account.
177-
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
177+
* 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.
178178
*
179179
* @throws IllegalArgumentException thrown if parameters fail the validation
180180
* @return the observable to the PoolStatistics object
@@ -183,15 +183,15 @@ public interface Pools {
183183

184184
/**
185185
* Gets lifetime summary statistics for all of the pools in the specified account.
186-
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
186+
* 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.
187187
*
188188
* @throws IllegalArgumentException thrown if parameters fail the validation
189189
* @return the observable to the PoolStatistics object
190190
*/
191191
Observable<ServiceResponseWithHeaders<PoolStatistics, PoolGetAllLifetimeStatisticsHeaders>> getAllLifetimeStatisticsWithServiceResponseAsync();
192192
/**
193193
* Gets lifetime summary statistics for all of the pools in the specified account.
194-
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
194+
* 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.
195195
*
196196
* @param poolGetAllLifetimeStatisticsOptions Additional parameters for the operation
197197
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -203,7 +203,7 @@ public interface Pools {
203203

204204
/**
205205
* Gets lifetime summary statistics for all of the pools in the specified account.
206-
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
206+
* 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.
207207
*
208208
* @param poolGetAllLifetimeStatisticsOptions Additional parameters for the operation
209209
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
@@ -214,7 +214,7 @@ public interface Pools {
214214

215215
/**
216216
* Gets lifetime summary statistics for all of the pools in the specified account.
217-
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
217+
* 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.
218218
*
219219
* @param poolGetAllLifetimeStatisticsOptions Additional parameters for the operation
220220
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -224,7 +224,7 @@ public interface Pools {
224224

225225
/**
226226
* Gets lifetime summary statistics for all of the pools in the specified account.
227-
* Statistics are aggregated across all pools that have ever existed in the account, from account creation to the last update time of the statistics.
227+
* 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.
228228
*
229229
* @param poolGetAllLifetimeStatisticsOptions Additional parameters for the operation
230230
* @throws IllegalArgumentException thrown if parameters fail the validation

src/main/java/com/microsoft/azure/batch/protocol/implementation/JobsImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ private ServiceResponseWithHeaders<Void, JobEnableHeaders> enableDelegate(Respon
17301730

17311731
/**
17321732
* Terminates the specified job, marking it as completed.
1733-
* 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.
1733+
* 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.
17341734
*
17351735
* @param jobId The ID of the job to terminate.
17361736
* @throws IllegalArgumentException thrown if parameters fail the validation

src/main/java/com/microsoft/azure/batch/protocol/models/CloudJob.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ public class CloudJob {
188188
private JobExecutionInformation executionInfo;
189189

190190
/**
191-
* Resource usage statistics for the entire lifetime of the job.
191+
* Resource usage statistics for the entire lifetime of the job. The
192+
* statistics may not be immediately available. The Batch service performs
193+
* periodic roll-up of statistics. The typical delay is about 30 minutes.
192194
*/
193195
@JsonProperty(value = "stats")
194196
private JobStatistics stats;

src/main/java/com/microsoft/azure/batch/protocol/models/CloudJobSchedule.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ public class CloudJobSchedule {
122122
private List<MetadataItem> metadata;
123123

124124
/**
125-
* The lifetime resource usage statistics for the job schedule.
125+
* The lifetime resource usage statistics for the job schedule. The
126+
* statistics may not be immediately available. The Batch service performs
127+
* periodic roll-up of statistics. The typical delay is about 30 minutes.
126128
*/
127129
@JsonProperty(value = "stats")
128130
private JobScheduleStatistics stats;

src/main/java/com/microsoft/azure/batch/protocol/models/CloudPool.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class CloudPool {
100100
* For information about available sizes of virtual machines for Cloud
101101
* Services pools (pools created with cloudServiceConfiguration), see Sizes
102102
* for Cloud Services
103-
* (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
103+
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
104104
* Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and
105105
* A2V2. For information about available VM sizes for pools using images
106106
* from the Virtual Machines Marketplace (pools created with
@@ -291,7 +291,9 @@ public class CloudPool {
291291

292292
/**
293293
* Utilization and resource usage statistics for the entire lifetime of the
294-
* pool.
294+
* pool. The statistics may not be immediately available. The Batch service
295+
* performs periodic roll-up of statistics. The typical delay is about 30
296+
* minutes.
295297
*/
296298
@JsonProperty(value = "stats")
297299
private PoolStatistics stats;

src/main/java/com/microsoft/azure/batch/protocol/models/CloudTask.java

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616

1717
/**
1818
* An Azure Batch task.
19+
* Batch will retry tasks when a recovery operation is triggered on a compute
20+
* node. Examples of recovery operations include (but are not limited to) when
21+
* an unhealthy compute node is rebooted or a compute node disappeared due to
22+
* host failure. Retries due to recovery operations are independent of and are
23+
* not counted against the maxTaskRetryCount. Even if the maxTaskRetryCount is
24+
* 0, an internal retry due to a recovery operation may occur. Because of this,
25+
* all tasks should be idempotent. This means tasks need to tolerate being
26+
* interrupted and restarted without causing any corruption or duplicate data.
27+
* The best practice for long running tasks is to use some form of
28+
* checkpointing.
1929
*/
2030
public class CloudTask {
2131
/**
@@ -105,6 +115,10 @@ public class CloudTask {
105115
* environment variable expansion. If you want to take advantage of such
106116
* features, you should invoke the shell in the command line, for example
107117
* using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux.
118+
* If the command line refers to file paths, it should use a relative path
119+
* (relative to the task working directory), or use the Batch provided
120+
* environment variable
121+
* (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables).
108122
*/
109123
@JsonProperty(value = "commandLine")
110124
private String commandLine;

src/main/java/com/microsoft/azure/batch/protocol/models/ComputeNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public class ComputeNode {
9797
* For information about available sizes of virtual machines for Cloud
9898
* Services pools (pools created with cloudServiceConfiguration), see Sizes
9999
* for Cloud Services
100-
* (http://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
100+
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
101101
* Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and
102102
* A2V2. For information about available VM sizes for pools using images
103103
* from the Virtual Machines Marketplace (pools created with

0 commit comments

Comments
 (0)