你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BatchAffinityInfo Class

Definition

A locality hint that can be used by the Batch service to select a Compute Node on which to start a Task.

public class BatchAffinityInfo : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.BatchAffinityInfo>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.BatchAffinityInfo>
type BatchAffinityInfo = class
    interface IJsonModel<BatchAffinityInfo>
    interface IPersistableModel<BatchAffinityInfo>
Public Class BatchAffinityInfo
Implements IJsonModel(Of BatchAffinityInfo), IPersistableModel(Of BatchAffinityInfo)
Inheritance
BatchAffinityInfo
Implements

Constructors

BatchAffinityInfo(String)

Initializes a new instance of BatchAffinityInfo.

Properties

AffinityId

An opaque string representing the location of a Compute Node or a Task that has run previously. You can pass the affinityId of a Node to indicate that this Task needs to run on that Compute Node. Note that this is just a soft affinity. If the target Compute Node is busy or unavailable at the time the Task is scheduled, then the Task will be scheduled elsewhere.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<BatchAffinityInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<BatchAffinityInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchAffinityInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchAffinityInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<BatchAffinityInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to