StatefulServiceProperties Class

Definition

The properties of a stateful service resource.

public final class StatefulServiceProperties extends ServiceResourceProperties
Inheritance
java.lang.Object
StatefulServiceProperties

Inherited Members

ServiceResourceProperties.partitionDescription() ServiceResourceProperties.provisioningState() ServiceResourceProperties.serviceDnsName() ServiceResourceProperties.servicePackageActivationMode() ServiceResourceProperties.serviceTypeName() ServiceResourceProperties.validate() ServiceResourceProperties.withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme) ServiceResourceProperties.withDefaultMoveCost(MoveCost defaultMoveCost) ServiceResourceProperties.withPartitionDescription(PartitionSchemeDescription partitionDescription) ServiceResourceProperties.withPlacementConstraints(String placementConstraints) ServiceResourceProperties.withServiceDnsName(String serviceDnsName) ServiceResourceProperties.withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics) ServiceResourceProperties.withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode) ServiceResourceProperties.withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies) ServiceResourceProperties.withServiceTypeName(String serviceTypeName) ServiceResourcePropertiesBase.correlationScheme() ServiceResourcePropertiesBase.defaultMoveCost() ServiceResourcePropertiesBase.placementConstraints() ServiceResourcePropertiesBase.serviceLoadMetrics() ServiceResourcePropertiesBase.servicePlacementPolicies() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructors

StatefulServiceProperties()

Methods

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.

minReplicaSetSize()

Get the minReplicaSetSize property: The minimum replica set size as a number.

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).

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).

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).

targetReplicaSetSize()

Get the targetReplicaSetSize property: The target replica set size as a number.

validate()

Validates the instance.

withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)

Set the correlationScheme property: A list that describes the correlation of the service with other services.

withDefaultMoveCost(MoveCost defaultMoveCost)

Set the defaultMoveCost property: Specifies the move cost for the service.

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.

withMinReplicaSetSize(Integer minReplicaSetSize)

Set the minReplicaSetSize property: The minimum replica set size as a number.

withPartitionDescription(PartitionSchemeDescription partitionDescription)

Set the partitionDescription property: Describes how the service is partitioned.

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)".

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).

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).

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.

withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)

Set the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.

withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode)

Set the servicePackageActivationMode property: The activation Mode of the service package.

withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)

Set the servicePlacementPolicies property: A list that describes the correlation of the service with other services.

withServiceTypeName(String serviceTypeName)

Set the serviceTypeName property: The name of the service type.

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).

withTargetReplicaSetSize(Integer targetReplicaSetSize)

Set the targetReplicaSetSize property: The target replica set size as a number.

Applies to