Udostępnij za pośrednictwem


ComputeNode Class

Definition

A Compute Node in the Batch service.

public class ComputeNode
type ComputeNode = class
Public Class ComputeNode
Inheritance
ComputeNode

Constructors

ComputeNode()

Initializes a new instance of the ComputeNode class.

ComputeNode(String, String, Nullable<ComputeNodeState>, Nullable<SchedulingState>, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, String, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IList<TaskInformation>, StartTask, StartTaskInformation, IList<CertificateReference>, IList<ComputeNodeError>, Nullable<Boolean>, ComputeNodeEndpointConfiguration, NodeAgentInformation, VirtualMachineInfo)

Initializes a new instance of the ComputeNode class.

Properties

AffinityId

Gets or sets an identifier which can be passed when adding a Task to request that the Task be scheduled on this Compute Node.

AllocationTime

Gets or sets the time at which this Compute Node was allocated to the Pool.

CertificateReferences

Gets or sets the list of Certificates installed on the Compute Node.

EndpointConfiguration

Gets or sets the endpoint configuration for the Compute Node.

Errors

Gets or sets the list of errors that are currently being encountered by the Compute Node.

Id

Gets or sets the ID of the Compute Node.

IpAddress

Gets or sets the IP address that other Nodes can use to communicate with this Compute Node.

IsDedicated

Gets or sets whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a Spot/Low-priority Compute Node.

LastBootTime

Gets or sets the last time at which the Compute Node was started.

NodeAgentInfo

Gets or sets information about the Compute Node agent version and the time the Compute Node upgraded to a new version.

RecentTasks

Gets or sets a list of Tasks whose state has recently changed.

RunningTasksCount

Gets or sets the total number of currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

RunningTaskSlotsCount

Gets or sets the total number of scheduling slots used by currently running Job Tasks on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

SchedulingState

Gets or sets whether the Compute Node is available for Task scheduling.

StartTask

Gets or sets the Task specified to run on the Compute Node as it joins the Pool.

StartTaskInfo

Gets or sets runtime information about the execution of the StartTask on the Compute Node.

State

Gets or sets the current state of the Compute Node.

StateTransitionTime

Gets or sets the time at which the Compute Node entered its current state.

TotalTasksRun

Gets or sets the total number of Job Tasks completed on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

TotalTasksSucceeded

Gets or sets the total number of Job Tasks which completed successfully (with exitCode 0) on the Compute Node. This includes Job Manager Tasks and normal Tasks, but not Job Preparation, Job Release or Start Tasks.

Url

Gets or sets the URL of the Compute Node.

VirtualMachineInfo

Gets or sets info about the current state of the virtual machine.

VmSize

Gets or sets the size of the virtual machine hosting the Compute Node.

Applies to