Class DeploymentConfiguration
- All Implemented Interfaces:
Serializable
,Cloneable
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The upper limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that can be running in a service during a deployment.The lower limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment.int
hashCode()
void
setMaximumPercent
(Integer maximumPercent) The upper limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that can be running in a service during a deployment.void
setMinimumHealthyPercent
(Integer minimumHealthyPercent) The lower limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment.toString()
Returns a string representation of this object; useful for testing and debugging.withMaximumPercent
(Integer maximumPercent) The upper limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that can be running in a service during a deployment.withMinimumHealthyPercent
(Integer minimumHealthyPercent) The lower limit (as a percentage of the service'sdesiredCount
) of the number of running tasks that must remain running and healthy in a service during a deployment.
-
Constructor Details
-
DeploymentConfiguration
public DeploymentConfiguration()
-
-
Method Details
-
setMaximumPercent
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 thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.- Parameters:
maximumPercent
- The upper limit (as a percentage of the service'sdesiredCount
) 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 thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.
-
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 thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.- Returns:
- 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 thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.
-
withMaximumPercent
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 thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.- Parameters:
maximumPercent
- The upper limit (as a percentage of the service'sdesiredCount
) 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 thedesiredCount
multiplied by themaximumPercent
/100, rounded down to the nearest integer value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMinimumHealthyPercent
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 thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.- Parameters:
minimumHealthyPercent
- The lower limit (as a percentage of the service'sdesiredCount
) 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 thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.
-
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 thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.- Returns:
- 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 thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.
-
withMinimumHealthyPercent
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 thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.- Parameters:
minimumHealthyPercent
- The lower limit (as a percentage of the service'sdesiredCount
) 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 thedesiredCount
multiplied by theminimumHealthyPercent
/100, rounded up to the nearest integer value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-