AffinityInformation Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. AffinityInformation
- com.
public class AffinityInformation
A locality hint that can be used by the Batch service to select a compute node on which to start a task.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
affinityId()
Get you can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere. |
Affinity |
withAffinityId(String affinityId)
Set you can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere. |
Method Details
affinityId
public String affinityId()
Get you can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere.
Returns:
withAffinityId
public AffinityInformation withAffinityId(String affinityId)
Set you can pass the affinityId of a compute node to indicate that this task needs to run on that compute node. Note that this is just a soft affinity. If the target node is busy or unavailable at the time the task is scheduled, then the task will be scheduled elsewhere.
Parameters:
Returns:
Applies to
Azure SDK for Java