ApplicationUpgradePolicy Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ApplicationUpgradePolicy
- com.
Implements
public final class ApplicationUpgradePolicy
implements JsonSerializable<ApplicationUpgradePolicy>
Describes the policy for a monitored application upgrade.
Constructor Summary
| Constructor | Description |
|---|---|
| ApplicationUpgradePolicy() |
Creates an instance of Application |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Arm |
applicationHealthPolicy()
Get the application |
| Boolean |
forceRestart()
Get the force |
|
static
Application |
fromJson(JsonReader jsonReader)
Reads an instance of Application |
| Boolean |
recreateApplication()
Get the recreate |
|
Arm |
rollingUpgradeMonitoringPolicy()
Get the rolling |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Rolling |
upgradeMode()
Get the upgrade |
| String |
upgradeReplicaSetCheckTimeout()
Get the upgrade |
| void |
validate()
Validates the instance. |
|
Application |
withApplicationHealthPolicy(ArmApplicationHealthPolicy applicationHealthPolicy)
Set the application |
|
Application |
withForceRestart(Boolean forceRestart)
Set the force |
|
Application |
withRecreateApplication(Boolean recreateApplication)
Set the recreate |
|
Application |
withRollingUpgradeMonitoringPolicy(ArmRollingUpgradeMonitoringPolicy rollingUpgradeMonitoringPolicy)
Set the rolling |
|
Application |
withUpgradeMode(RollingUpgradeMode upgradeMode)
Set the upgrade |
|
Application |
withUpgradeReplicaSetCheckTimeout(String upgradeReplicaSetCheckTimeout)
Set the upgrade |
Methods inherited from java.lang.Object
Constructor Details
ApplicationUpgradePolicy
public ApplicationUpgradePolicy()
Creates an instance of ApplicationUpgradePolicy class.
Method Details
applicationHealthPolicy
public ArmApplicationHealthPolicy applicationHealthPolicy()
Get the applicationHealthPolicy property: Defines a health policy used to evaluate the health of an application or one of its children entities.
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:
fromJson
public static ApplicationUpgradePolicy fromJson(JsonReader jsonReader)
Reads an instance of ApplicationUpgradePolicy from the JsonReader.
Parameters:
Returns:
Throws:
recreateApplication
public Boolean recreateApplication()
Get the recreateApplication property: Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss.
Returns:
rollingUpgradeMonitoringPolicy
public ArmRollingUpgradeMonitoringPolicy rollingUpgradeMonitoringPolicy()
Get the rollingUpgradeMonitoringPolicy property: The policy used for monitoring the application upgrade.
Returns:
toJson
upgradeMode
public RollingUpgradeMode upgradeMode()
Get the upgradeMode property: The mode used to monitor health during a rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and Monitored.
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. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer).
Returns:
validate
public void validate()
Validates the instance.
withApplicationHealthPolicy
public ApplicationUpgradePolicy withApplicationHealthPolicy(ArmApplicationHealthPolicy applicationHealthPolicy)
Set the applicationHealthPolicy property: Defines a health policy used to evaluate the health of an application or one of its children entities.
Parameters:
Returns:
withForceRestart
public ApplicationUpgradePolicy 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:
withRecreateApplication
public ApplicationUpgradePolicy withRecreateApplication(Boolean recreateApplication)
Set the recreateApplication property: Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss.
Parameters:
Returns:
withRollingUpgradeMonitoringPolicy
public ApplicationUpgradePolicy withRollingUpgradeMonitoringPolicy(ArmRollingUpgradeMonitoringPolicy rollingUpgradeMonitoringPolicy)
Set the rollingUpgradeMonitoringPolicy property: The policy used for monitoring the application upgrade.
Parameters:
Returns:
withUpgradeMode
public ApplicationUpgradePolicy withUpgradeMode(RollingUpgradeMode upgradeMode)
Set the upgradeMode property: The mode used to monitor health during a rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and Monitored.
Parameters:
Returns:
withUpgradeReplicaSetCheckTimeout
public ApplicationUpgradePolicy 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. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer).
Parameters:
Returns: