ClusterUpgradeDeltaHealthPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.ClusterUpgradeDeltaHealthPolicy

public final class ClusterUpgradeDeltaHealthPolicy

Describes the delta health policies for the cluster upgrade.

Constructor Summary

Constructor Description
ClusterUpgradeDeltaHealthPolicy()

Creates an instance of ClusterUpgradeDeltaHealthPolicy class.

Method Summary

Modifier and Type Method and Description
Map<String,ApplicationDeltaHealthPolicy> applicationDeltaHealthPolicies()

Get the applicationDeltaHealthPolicies property: Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster.

int maxPercentDeltaUnhealthyApplications()

Get the maxPercentDeltaUnhealthyApplications property: The maximum allowed percentage of applications health degradation allowed during cluster upgrades.

int maxPercentDeltaUnhealthyNodes()

Get the maxPercentDeltaUnhealthyNodes property: The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.

int maxPercentUpgradeDomainDeltaUnhealthyNodes()

Get the maxPercentUpgradeDomainDeltaUnhealthyNodes property: The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.

void validate()

Validates the instance.

ClusterUpgradeDeltaHealthPolicy withApplicationDeltaHealthPolicies(Map<String,ApplicationDeltaHealthPolicy> applicationDeltaHealthPolicies)

Set the applicationDeltaHealthPolicies property: Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster.

ClusterUpgradeDeltaHealthPolicy withMaxPercentDeltaUnhealthyApplications(int maxPercentDeltaUnhealthyApplications)

Set the maxPercentDeltaUnhealthyApplications property: The maximum allowed percentage of applications health degradation allowed during cluster upgrades.

ClusterUpgradeDeltaHealthPolicy withMaxPercentDeltaUnhealthyNodes(int maxPercentDeltaUnhealthyNodes)

Set the maxPercentDeltaUnhealthyNodes property: The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.

ClusterUpgradeDeltaHealthPolicy withMaxPercentUpgradeDomainDeltaUnhealthyNodes(int maxPercentUpgradeDomainDeltaUnhealthyNodes)

Set the maxPercentUpgradeDomainDeltaUnhealthyNodes property: The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.

Methods inherited from java.lang.Object

Constructor Details

ClusterUpgradeDeltaHealthPolicy

public ClusterUpgradeDeltaHealthPolicy()

Creates an instance of ClusterUpgradeDeltaHealthPolicy class.

Method Details

applicationDeltaHealthPolicies

public Map applicationDeltaHealthPolicies()

Get the applicationDeltaHealthPolicies property: Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster.

Returns:

the applicationDeltaHealthPolicies value.

maxPercentDeltaUnhealthyApplications

public int maxPercentDeltaUnhealthyApplications()

Get the maxPercentDeltaUnhealthyApplications property: The maximum allowed percentage of applications health degradation allowed during cluster upgrades. The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.

Returns:

the maxPercentDeltaUnhealthyApplications value.

maxPercentDeltaUnhealthyNodes

public int maxPercentDeltaUnhealthyNodes()

Get the maxPercentDeltaUnhealthyNodes property: The maximum allowed percentage of nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.

Returns:

the maxPercentDeltaUnhealthyNodes value.

maxPercentUpgradeDomainDeltaUnhealthyNodes

public int maxPercentUpgradeDomainDeltaUnhealthyNodes()

Get the maxPercentUpgradeDomainDeltaUnhealthyNodes property: The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.

Returns:

the maxPercentUpgradeDomainDeltaUnhealthyNodes value.

validate

public void validate()

Validates the instance.

withApplicationDeltaHealthPolicies

public ClusterUpgradeDeltaHealthPolicy withApplicationDeltaHealthPolicies(Map applicationDeltaHealthPolicies)

Set the applicationDeltaHealthPolicies property: Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster.

Parameters:

applicationDeltaHealthPolicies - the applicationDeltaHealthPolicies value to set.

Returns:

the ClusterUpgradeDeltaHealthPolicy object itself.

withMaxPercentDeltaUnhealthyApplications

public ClusterUpgradeDeltaHealthPolicy withMaxPercentDeltaUnhealthyApplications(int maxPercentDeltaUnhealthyApplications)

Set the maxPercentDeltaUnhealthyApplications property: The maximum allowed percentage of applications health degradation allowed during cluster upgrades. The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.

Parameters:

maxPercentDeltaUnhealthyApplications - the maxPercentDeltaUnhealthyApplications value to set.

Returns:

the ClusterUpgradeDeltaHealthPolicy object itself.

withMaxPercentDeltaUnhealthyNodes

public ClusterUpgradeDeltaHealthPolicy withMaxPercentDeltaUnhealthyNodes(int maxPercentDeltaUnhealthyNodes)

Set the maxPercentDeltaUnhealthyNodes property: The maximum allowed percentage of nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.

Parameters:

maxPercentDeltaUnhealthyNodes - the maxPercentDeltaUnhealthyNodes value to set.

Returns:

the ClusterUpgradeDeltaHealthPolicy object itself.

withMaxPercentUpgradeDomainDeltaUnhealthyNodes

public ClusterUpgradeDeltaHealthPolicy withMaxPercentUpgradeDomainDeltaUnhealthyNodes(int maxPercentUpgradeDomainDeltaUnhealthyNodes)

Set the maxPercentUpgradeDomainDeltaUnhealthyNodes property: The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades. The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.

Parameters:

maxPercentUpgradeDomainDeltaUnhealthyNodes - the maxPercentUpgradeDomainDeltaUnhealthyNodes value to set.

Returns:

the ClusterUpgradeDeltaHealthPolicy object itself.

Applies to