StatefulServiceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ServiceResourcePropertiesBase - com.
azure. resourcemanager. servicefabric. models. ServiceResourceProperties - com.
azure. resourcemanager. servicefabric. models. StatefulServiceProperties
- com.
- com.
- com.
public final class StatefulServiceProperties
extends ServiceResourceProperties
The properties of a stateful service resource.
Constructor Summary
Constructor | Description |
---|---|
StatefulServiceProperties() |
Creates an instance of Stateful |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
hasPersistedState()
Get the has |
Integer |
minReplicaSetSize()
Get the min |
Offset |
quorumLossWaitDuration()
Get the quorum |
Offset |
replicaRestartWaitDuration()
Get the replica |
Offset |
standByReplicaKeepDuration()
Get the stand |
Integer |
targetReplicaSetSize()
Get the target |
void |
validate()
Validates the instance. |
Stateful |
withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)
Set the correlation |
Stateful |
withDefaultMoveCost(MoveCost defaultMoveCost)
Set the default |
Stateful |
withHasPersistedState(Boolean hasPersistedState)
Set the has |
Stateful |
withMinReplicaSetSize(Integer minReplicaSetSize)
Set the min |
Stateful |
withPartitionDescription(PartitionSchemeDescription partitionDescription)
Set the partition |
Stateful |
withPlacementConstraints(String placementConstraints)
Set the placement |
Stateful |
withQuorumLossWaitDuration(OffsetDateTime quorumLossWaitDuration)
Set the quorum |
Stateful |
withReplicaRestartWaitDuration(OffsetDateTime replicaRestartWaitDuration)
Set the replica |
Stateful |
withServiceDnsName(String serviceDnsName)
Set the service |
Stateful |
withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)
Set the service |
Stateful |
withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode)
Set the service |
Stateful |
withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)
Set the service |
Stateful |
withServiceTypeName(String serviceTypeName)
Set the service |
Stateful |
withStandByReplicaKeepDuration(OffsetDateTime standByReplicaKeepDuration)
Set the stand |
Stateful |
withTargetReplicaSetSize(Integer targetReplicaSetSize)
Set the target |
Methods inherited from ServiceResourceProperties
Methods inherited from ServiceResourcePropertiesBase
Methods inherited from java.lang.Object
Constructor Details
StatefulServiceProperties
public StatefulServiceProperties()
Creates an instance of StatefulServiceProperties class.
Method Details
hasPersistedState
public Boolean hasPersistedState()
Get the hasPersistedState property: A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false.
Returns:
minReplicaSetSize
public Integer minReplicaSetSize()
Get the minReplicaSetSize property: The minimum replica set size as a number.
Returns:
quorumLossWaitDuration
public OffsetDateTime quorumLossWaitDuration()
Get the quorumLossWaitDuration property: The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s).
Returns:
replicaRestartWaitDuration
public OffsetDateTime replicaRestartWaitDuration()
Get the replicaRestartWaitDuration property: The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s).
Returns:
standByReplicaKeepDuration
public OffsetDateTime standByReplicaKeepDuration()
Get the standByReplicaKeepDuration property: The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s).
Returns:
targetReplicaSetSize
public Integer targetReplicaSetSize()
Get the targetReplicaSetSize property: The target replica set size as a number.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
StatefulServiceProperties.validate()withCorrelationScheme
public StatefulServiceProperties withCorrelationScheme(List
Set the correlationScheme property: A list that describes the correlation of the service with other services.
Overrides:
StatefulServiceProperties.withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)Parameters:
withDefaultMoveCost
public StatefulServiceProperties withDefaultMoveCost(MoveCost defaultMoveCost)
Set the defaultMoveCost property: Specifies the move cost for the service.
Overrides:
StatefulServiceProperties.withDefaultMoveCost(MoveCost defaultMoveCost)Parameters:
withHasPersistedState
public StatefulServiceProperties withHasPersistedState(Boolean hasPersistedState)
Set the hasPersistedState property: A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false.
Parameters:
Returns:
withMinReplicaSetSize
public StatefulServiceProperties withMinReplicaSetSize(Integer minReplicaSetSize)
Set the minReplicaSetSize property: The minimum replica set size as a number.
Parameters:
Returns:
withPartitionDescription
public StatefulServiceProperties withPartitionDescription(PartitionSchemeDescription partitionDescription)
Set the partitionDescription property: Describes how the service is partitioned.
Overrides:
StatefulServiceProperties.withPartitionDescription(PartitionSchemeDescription partitionDescription)Parameters:
withPlacementConstraints
public StatefulServiceProperties withPlacementConstraints(String placementConstraints)
Set the placementConstraints property: The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
Overrides:
StatefulServiceProperties.withPlacementConstraints(String placementConstraints)Parameters:
withQuorumLossWaitDuration
public StatefulServiceProperties withQuorumLossWaitDuration(OffsetDateTime quorumLossWaitDuration)
Set the quorumLossWaitDuration property: The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s).
Parameters:
Returns:
withReplicaRestartWaitDuration
public StatefulServiceProperties withReplicaRestartWaitDuration(OffsetDateTime replicaRestartWaitDuration)
Set the replicaRestartWaitDuration property: The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s).
Parameters:
Returns:
withServiceDnsName
public StatefulServiceProperties withServiceDnsName(String serviceDnsName)
Set the serviceDnsName property: Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name.
Overrides:
StatefulServiceProperties.withServiceDnsName(String serviceDnsName)Parameters:
withServiceLoadMetrics
public StatefulServiceProperties withServiceLoadMetrics(List
Set the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.
Overrides:
StatefulServiceProperties.withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)Parameters:
withServicePackageActivationMode
public StatefulServiceProperties withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode)
Set the servicePackageActivationMode property: The activation Mode of the service package.
Overrides:
StatefulServiceProperties.withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode)Parameters:
withServicePlacementPolicies
public StatefulServiceProperties withServicePlacementPolicies(List
Set the servicePlacementPolicies property: A list that describes the correlation of the service with other services.
Overrides:
StatefulServiceProperties.withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)Parameters:
withServiceTypeName
public StatefulServiceProperties withServiceTypeName(String serviceTypeName)
Set the serviceTypeName property: The name of the service type.
Overrides:
StatefulServiceProperties.withServiceTypeName(String serviceTypeName)Parameters:
withStandByReplicaKeepDuration
public StatefulServiceProperties withStandByReplicaKeepDuration(OffsetDateTime standByReplicaKeepDuration)
Set the standByReplicaKeepDuration property: The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s).
Parameters:
Returns:
withTargetReplicaSetSize
public StatefulServiceProperties withTargetReplicaSetSize(Integer targetReplicaSetSize)
Set the targetReplicaSetSize property: The target replica set size as a number.
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