public class DeploymentConfiguration
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
maximumPercent
The upper limit (as a percentage of the service's
desiredCount ) of the number of running tasks that can be
running in a service during a deployment. |
private java.lang.Integer |
minimumHealthyPercent
The lower limit (as a percentage of the service's
desiredCount ) of the number of running tasks that must
remain running and healthy in a service during a deployment. |
Constructor and Description |
---|
DeploymentConfiguration() |
Modifier and Type | Method and Description |
---|---|
DeploymentConfiguration |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getMaximumPercent()
The upper limit (as a percentage of the service's
desiredCount ) of the number of running tasks that can be
running in a service during a deployment. |
java.lang.Integer |
getMinimumHealthyPercent()
The lower limit (as a percentage of the service's
desiredCount ) of the number of running tasks that must
remain running and healthy in a service during a deployment. |
int |
hashCode() |
void |
setMaximumPercent(java.lang.Integer maximumPercent)
The upper limit (as a percentage of the service's
desiredCount ) of the number of running tasks that can be
running in a service during a deployment. |
void |
setMinimumHealthyPercent(java.lang.Integer minimumHealthyPercent)
The lower limit (as a percentage of the service's
desiredCount ) of the number of running tasks that must
remain running and healthy in a service during a deployment. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeploymentConfiguration |
withMaximumPercent(java.lang.Integer maximumPercent)
The upper limit (as a percentage of the service's
desiredCount ) of the number of running tasks that can be
running in a service during a deployment. |
DeploymentConfiguration |
withMinimumHealthyPercent(java.lang.Integer minimumHealthyPercent)
The lower limit (as a percentage of the service's
desiredCount ) of the number of running tasks that must
remain running and healthy in a service during a deployment. |
private java.lang.Integer maximumPercent
The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can be
running in a service during a deployment. The maximum number of tasks
during a deployment is the desiredCount
multiplied by the
maximumPercent
/100, rounded down to the nearest integer
value.
private java.lang.Integer minimumHealthyPercent
The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that must
remain running and healthy in a service during a deployment. The minimum
healthy tasks during a deployment is the desiredCount
multiplied by the minimumHealthyPercent
/100, rounded up to
the nearest integer value.
public void setMaximumPercent(java.lang.Integer maximumPercent)
The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can be
running in a service during a deployment. The maximum number of tasks
during a deployment is the desiredCount
multiplied by the
maximumPercent
/100, rounded down to the nearest integer
value.
maximumPercent
- The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can
be running in a service during a deployment. The maximum number of
tasks during a deployment is the desiredCount
multiplied by the maximumPercent
/100, rounded down to
the nearest integer value.public java.lang.Integer getMaximumPercent()
The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can be
running in a service during a deployment. The maximum number of tasks
during a deployment is the desiredCount
multiplied by the
maximumPercent
/100, rounded down to the nearest integer
value.
desiredCount
) of the number of running tasks that
can be running in a service during a deployment. The maximum
number of tasks during a deployment is the
desiredCount
multiplied by the
maximumPercent
/100, rounded down to the nearest
integer value.public DeploymentConfiguration withMaximumPercent(java.lang.Integer maximumPercent)
The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can be
running in a service during a deployment. The maximum number of tasks
during a deployment is the desiredCount
multiplied by the
maximumPercent
/100, rounded down to the nearest integer
value.
maximumPercent
- The upper limit (as a percentage of the service's
desiredCount
) of the number of running tasks that can
be running in a service during a deployment. The maximum number of
tasks during a deployment is the desiredCount
multiplied by the maximumPercent
/100, rounded down to
the nearest integer value.public void setMinimumHealthyPercent(java.lang.Integer minimumHealthyPercent)
The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that must
remain running and healthy in a service during a deployment. The minimum
healthy tasks during a deployment is the desiredCount
multiplied by the minimumHealthyPercent
/100, rounded up to
the nearest integer value.
minimumHealthyPercent
- The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that
must remain running and healthy in a service during a deployment.
The minimum healthy tasks during a deployment is the
desiredCount
multiplied by the
minimumHealthyPercent
/100, rounded up to the nearest
integer value.public java.lang.Integer getMinimumHealthyPercent()
The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that must
remain running and healthy in a service during a deployment. The minimum
healthy tasks during a deployment is the desiredCount
multiplied by the minimumHealthyPercent
/100, rounded up to
the nearest integer value.
desiredCount
) of the number of running tasks that
must remain running and healthy in a service during a deployment.
The minimum healthy tasks during a deployment is the
desiredCount
multiplied by the
minimumHealthyPercent
/100, rounded up to the nearest
integer value.public DeploymentConfiguration withMinimumHealthyPercent(java.lang.Integer minimumHealthyPercent)
The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that must
remain running and healthy in a service during a deployment. The minimum
healthy tasks during a deployment is the desiredCount
multiplied by the minimumHealthyPercent
/100, rounded up to
the nearest integer value.
minimumHealthyPercent
- The lower limit (as a percentage of the service's
desiredCount
) of the number of running tasks that
must remain running and healthy in a service during a deployment.
The minimum healthy tasks during a deployment is the
desiredCount
multiplied by the
minimumHealthyPercent
/100, rounded up to the nearest
integer value.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DeploymentConfiguration clone()
clone
in class java.lang.Object