azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.batch.p...

84 строки
6.8 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.batch.protocol.models.JobConstraints"
fullName: "com.microsoft.azure.batch.protocol.models.JobConstraints"
name: "JobConstraints"
nameWithType: "JobConstraints"
summary: "The execution constraints for a Job."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public class **JobConstraints**"
constructors:
- uid: "com.microsoft.azure.batch.protocol.models.JobConstraints.JobConstraints()"
fullName: "com.microsoft.azure.batch.protocol.models.JobConstraints.JobConstraints()"
name: "JobConstraints()"
nameWithType: "JobConstraints.JobConstraints()"
syntax: "public JobConstraints()"
methods:
- uid: "com.microsoft.azure.batch.protocol.models.JobConstraints.maxTaskRetryCount()"
fullName: "com.microsoft.azure.batch.protocol.models.JobConstraints.maxTaskRetryCount()"
name: "maxTaskRetryCount()"
nameWithType: "JobConstraints.maxTaskRetryCount()"
summary: "Get note that this value specifically controls the number of retries."
syntax: "public Integer maxTaskRetryCount()"
desc: "Get note that this value specifically controls the number of retries. The Batch service will try each Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries a Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry Tasks. If the maximum retry count is -1, the Batch service retries Tasks without limit. The default value is 0 (no retries)."
returns:
description: "the maxTaskRetryCount value"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
- uid: "com.microsoft.azure.batch.protocol.models.JobConstraints.maxWallClockTime()"
fullName: "com.microsoft.azure.batch.protocol.models.JobConstraints.maxWallClockTime()"
name: "maxWallClockTime()"
nameWithType: "JobConstraints.maxWallClockTime()"
summary: "Get if the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running."
syntax: "public Period maxWallClockTime()"
desc: "Get if the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running. In this case, the termination reason will be MaxWallClockTimeExpiry. If this property is not specified, there is no time limit on how long the Job may run."
returns:
description: "the maxWallClockTime value"
type: "<xref href=\"org.joda.time.Period?alt=org.joda.time.Period&text=Period\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.batch.protocol.models.JobConstraints.withMaxTaskRetryCount(java.lang.Integer)"
fullName: "com.microsoft.azure.batch.protocol.models.JobConstraints.withMaxTaskRetryCount(Integer maxTaskRetryCount)"
name: "withMaxTaskRetryCount(Integer maxTaskRetryCount)"
nameWithType: "JobConstraints.withMaxTaskRetryCount(Integer maxTaskRetryCount)"
summary: "Set note that this value specifically controls the number of retries."
parameters:
- description: "the maxTaskRetryCount value to set"
name: "maxTaskRetryCount"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
syntax: "public JobConstraints withMaxTaskRetryCount(Integer maxTaskRetryCount)"
desc: "Set note that this value specifically controls the number of retries. The Batch service will try each Task once, and may then retry up to this limit. For example, if the maximum retry count is 3, Batch tries a Task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, the Batch service does not retry Tasks. If the maximum retry count is -1, the Batch service retries Tasks without limit. The default value is 0 (no retries)."
returns:
description: "the JobConstraints object itself."
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.JobConstraints?alt=com.microsoft.azure.batch.protocol.models.JobConstraints&text=JobConstraints\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.batch.protocol.models.JobConstraints.withMaxWallClockTime(org.joda.time.Period)"
fullName: "com.microsoft.azure.batch.protocol.models.JobConstraints.withMaxWallClockTime(Period maxWallClockTime)"
name: "withMaxWallClockTime(Period maxWallClockTime)"
nameWithType: "JobConstraints.withMaxWallClockTime(Period maxWallClockTime)"
summary: "Set if the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running."
parameters:
- description: "the maxWallClockTime value to set"
name: "maxWallClockTime"
type: "<xref href=\"org.joda.time.Period?alt=org.joda.time.Period&text=Period\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JobConstraints withMaxWallClockTime(Period maxWallClockTime)"
desc: "Set if the Job does not complete within the time limit, the Batch service terminates it and any Tasks that are still running. In this case, the termination reason will be MaxWallClockTimeExpiry. If this property is not specified, there is no time limit on how long the Job may run."
returns:
description: "the JobConstraints object itself."
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.JobConstraints?alt=com.microsoft.azure.batch.protocol.models.JobConstraints&text=JobConstraints\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The execution constraints for a Job."
metadata: {}
package: "com.microsoft.azure.batch.protocol.models"
artifact: com.microsoft.azure:azure-batch:11.2.0