ServiceResourcePropertiesBase Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ServiceResourcePropertiesBase
- com.
public class ServiceResourcePropertiesBase
The common service resource properties.
Constructor Summary
Constructor | Description |
---|---|
ServiceResourcePropertiesBase() |
Creates an instance of Service |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Service |
correlationScheme()
Get the correlation |
Move |
defaultMoveCost()
Get the default |
String |
placementConstraints()
Get the placement |
List<Service |
serviceLoadMetrics()
Get the service |
List<Service |
servicePlacementPolicies()
Get the service |
void |
validate()
Validates the instance. |
Service |
withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)
Set the correlation |
Service |
withDefaultMoveCost(MoveCost defaultMoveCost)
Set the default |
Service |
withPlacementConstraints(String placementConstraints)
Set the placement |
Service |
withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)
Set the service |
Service |
withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)
Set the service |
Methods inherited from java.lang.Object
Constructor Details
ServiceResourcePropertiesBase
public ServiceResourcePropertiesBase()
Creates an instance of ServiceResourcePropertiesBase class.
Method Details
correlationScheme
public List
Get the correlationScheme property: A list that describes the correlation of the service with other services.
Returns:
defaultMoveCost
public MoveCost defaultMoveCost()
Get the defaultMoveCost property: Specifies the move cost for the service.
Returns:
placementConstraints
public String placementConstraints()
Get 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)".
Returns:
serviceLoadMetrics
public List
Get the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.
Returns:
servicePlacementPolicies
public List
Get the servicePlacementPolicies property: A list that describes the correlation of the service with other services.
Returns:
validate
public void validate()
Validates the instance.
withCorrelationScheme
public ServiceResourcePropertiesBase withCorrelationScheme(List
Set the correlationScheme property: A list that describes the correlation of the service with other services.
Parameters:
Returns:
withDefaultMoveCost
public ServiceResourcePropertiesBase withDefaultMoveCost(MoveCost defaultMoveCost)
Set the defaultMoveCost property: Specifies the move cost for the service.
Parameters:
Returns:
withPlacementConstraints
public ServiceResourcePropertiesBase 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)".
Parameters:
Returns:
withServiceLoadMetrics
public ServiceResourcePropertiesBase withServiceLoadMetrics(List
Set the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.
Parameters:
Returns:
withServicePlacementPolicies
public ServiceResourcePropertiesBase withServicePlacementPolicies(List
Set the servicePlacementPolicies property: A list that describes the correlation of the service with other services.
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