ClusterUpgradePolicy Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ClusterUpgradePolicy
- com.
public final class ClusterUpgradePolicy
Describes the policy used when upgrading the cluster.
Constructor Summary
Constructor | Description |
---|---|
ClusterUpgradePolicy() |
Creates an instance of Cluster |
Method Summary
Modifier and Type | Method and Description |
---|---|
Cluster |
deltaHealthPolicy()
Get the delta |
Boolean |
forceRestart()
Get the force |
String |
healthCheckRetryTimeout()
Get the health |
String |
healthCheckStableDuration()
Get the health |
String |
healthCheckWaitDuration()
Get the health |
Cluster |
healthPolicy()
Get the health |
String |
upgradeDomainTimeout()
Get the upgrade |
String |
upgradeReplicaSetCheckTimeout()
Get the upgrade |
String |
upgradeTimeout()
Get the upgrade |
void |
validate()
Validates the instance. |
Cluster |
withDeltaHealthPolicy(ClusterUpgradeDeltaHealthPolicy deltaHealthPolicy)
Set the delta |
Cluster |
withForceRestart(Boolean forceRestart)
Set the force |
Cluster |
withHealthCheckRetryTimeout(String healthCheckRetryTimeout)
Set the health |
Cluster |
withHealthCheckStableDuration(String healthCheckStableDuration)
Set the health |
Cluster |
withHealthCheckWaitDuration(String healthCheckWaitDuration)
Set the health |
Cluster |
withHealthPolicy(ClusterHealthPolicy healthPolicy)
Set the health |
Cluster |
withUpgradeDomainTimeout(String upgradeDomainTimeout)
Set the upgrade |
Cluster |
withUpgradeReplicaSetCheckTimeout(String upgradeReplicaSetCheckTimeout)
Set the upgrade |
Cluster |
withUpgradeTimeout(String upgradeTimeout)
Set the upgrade |
Methods inherited from java.lang.Object
Constructor Details
ClusterUpgradePolicy
public ClusterUpgradePolicy()
Creates an instance of ClusterUpgradePolicy class.
Method Details
deltaHealthPolicy
public ClusterUpgradeDeltaHealthPolicy deltaHealthPolicy()
Get the deltaHealthPolicy property: The cluster delta health policy used when upgrading the cluster.
Returns:
forceRestart
public Boolean forceRestart()
Get the forceRestart property: If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data).
Returns:
healthCheckRetryTimeout
public String healthCheckRetryTimeout()
Get the healthCheckRetryTimeout property: The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Returns:
healthCheckStableDuration
public String healthCheckStableDuration()
Get the healthCheckStableDuration property: The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Returns:
healthCheckWaitDuration
public String healthCheckWaitDuration()
Get the healthCheckWaitDuration property: The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Returns:
healthPolicy
public ClusterHealthPolicy healthPolicy()
Get the healthPolicy property: The cluster health policy used when upgrading the cluster.
Returns:
upgradeDomainTimeout
public String upgradeDomainTimeout()
Get the upgradeDomainTimeout property: The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Returns:
upgradeReplicaSetCheckTimeout
public String upgradeReplicaSetCheckTimeout()
Get the upgradeReplicaSetCheckTimeout property: The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Returns:
upgradeTimeout
public String upgradeTimeout()
Get the upgradeTimeout property: The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Returns:
validate
public void validate()
Validates the instance.
withDeltaHealthPolicy
public ClusterUpgradePolicy withDeltaHealthPolicy(ClusterUpgradeDeltaHealthPolicy deltaHealthPolicy)
Set the deltaHealthPolicy property: The cluster delta health policy used when upgrading the cluster.
Parameters:
Returns:
withForceRestart
public ClusterUpgradePolicy withForceRestart(Boolean forceRestart)
Set the forceRestart property: If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data).
Parameters:
Returns:
withHealthCheckRetryTimeout
public ClusterUpgradePolicy withHealthCheckRetryTimeout(String healthCheckRetryTimeout)
Set the healthCheckRetryTimeout property: The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Parameters:
Returns:
withHealthCheckStableDuration
public ClusterUpgradePolicy withHealthCheckStableDuration(String healthCheckStableDuration)
Set the healthCheckStableDuration property: The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Parameters:
Returns:
withHealthCheckWaitDuration
public ClusterUpgradePolicy withHealthCheckWaitDuration(String healthCheckWaitDuration)
Set the healthCheckWaitDuration property: The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Parameters:
Returns:
withHealthPolicy
public ClusterUpgradePolicy withHealthPolicy(ClusterHealthPolicy healthPolicy)
Set the healthPolicy property: The cluster health policy used when upgrading the cluster.
Parameters:
Returns:
withUpgradeDomainTimeout
public ClusterUpgradePolicy withUpgradeDomainTimeout(String upgradeDomainTimeout)
Set the upgradeDomainTimeout property: The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Parameters:
Returns:
withUpgradeReplicaSetCheckTimeout
public ClusterUpgradePolicy withUpgradeReplicaSetCheckTimeout(String upgradeReplicaSetCheckTimeout)
Set the upgradeReplicaSetCheckTimeout property: The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Parameters:
Returns:
withUpgradeTimeout
public ClusterUpgradePolicy withUpgradeTimeout(String upgradeTimeout)
Set the upgradeTimeout property: The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for