Udostępnij za pośrednictwem


ComputeNode Constructors

Definition

Overloads

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.

ComputeNode()

Source:
ComputeNode.cs

Initializes a new instance of the ComputeNode class.

public ComputeNode ();
Public Sub New ()

Applies to

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)

Source:
ComputeNode.cs

Initializes a new instance of the ComputeNode class.

public ComputeNode (string id = default, string url = default, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeState? state = default, Microsoft.Azure.Batch.Protocol.Models.SchedulingState? schedulingState = default, DateTime? stateTransitionTime = default, DateTime? lastBootTime = default, DateTime? allocationTime = default, string ipAddress = default, string affinityId = default, string vmSize = default, int? totalTasksRun = default, int? runningTasksCount = default, int? runningTaskSlotsCount = default, int? totalTasksSucceeded = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.TaskInformation> recentTasks = default, Microsoft.Azure.Batch.Protocol.Models.StartTask startTask = default, Microsoft.Azure.Batch.Protocol.Models.StartTaskInformation startTaskInfo = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.CertificateReference> certificateReferences = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeError> errors = default, bool? isDedicated = default, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeEndpointConfiguration endpointConfiguration = default, Microsoft.Azure.Batch.Protocol.Models.NodeAgentInformation nodeAgentInfo = default, Microsoft.Azure.Batch.Protocol.Models.VirtualMachineInfo virtualMachineInfo = default);
new Microsoft.Azure.Batch.Protocol.Models.ComputeNode : string * string * Nullable<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeState> * Nullable<Microsoft.Azure.Batch.Protocol.Models.SchedulingState> * Nullable<DateTime> * Nullable<DateTime> * Nullable<DateTime> * string * string * string * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.TaskInformation> * Microsoft.Azure.Batch.Protocol.Models.StartTask * Microsoft.Azure.Batch.Protocol.Models.StartTaskInformation * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.CertificateReference> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeError> * Nullable<bool> * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeEndpointConfiguration * Microsoft.Azure.Batch.Protocol.Models.NodeAgentInformation * Microsoft.Azure.Batch.Protocol.Models.VirtualMachineInfo -> Microsoft.Azure.Batch.Protocol.Models.ComputeNode
Public Sub New (Optional id As String = Nothing, Optional url As String = Nothing, Optional state As Nullable(Of ComputeNodeState) = Nothing, Optional schedulingState As Nullable(Of SchedulingState) = Nothing, Optional stateTransitionTime As Nullable(Of DateTime) = Nothing, Optional lastBootTime As Nullable(Of DateTime) = Nothing, Optional allocationTime As Nullable(Of DateTime) = Nothing, Optional ipAddress As String = Nothing, Optional affinityId As String = Nothing, Optional vmSize As String = Nothing, Optional totalTasksRun As Nullable(Of Integer) = Nothing, Optional runningTasksCount As Nullable(Of Integer) = Nothing, Optional runningTaskSlotsCount As Nullable(Of Integer) = Nothing, Optional totalTasksSucceeded As Nullable(Of Integer) = Nothing, Optional recentTasks As IList(Of TaskInformation) = Nothing, Optional startTask As StartTask = Nothing, Optional startTaskInfo As StartTaskInformation = Nothing, Optional certificateReferences As IList(Of CertificateReference) = Nothing, Optional errors As IList(Of ComputeNodeError) = Nothing, Optional isDedicated As Nullable(Of Boolean) = Nothing, Optional endpointConfiguration As ComputeNodeEndpointConfiguration = Nothing, Optional nodeAgentInfo As NodeAgentInformation = Nothing, Optional virtualMachineInfo As VirtualMachineInfo = Nothing)

Parameters

id
String

The ID of the Compute Node.

url
String

The URL of the Compute Node.

state
Nullable<ComputeNodeState>

The current state of the Compute Node.

schedulingState
Nullable<SchedulingState>

Whether the Compute Node is available for Task scheduling.

stateTransitionTime
Nullable<DateTime>

The time at which the Compute Node entered its current state.

lastBootTime
Nullable<DateTime>

The last time at which the Compute Node was started.

allocationTime
Nullable<DateTime>

The time at which this Compute Node was allocated to the Pool.

ipAddress
String

The IP address that other Nodes can use to communicate with this Compute Node.

affinityId
String

An identifier which can be passed when adding a Task to request that the Task be scheduled on this Compute Node.

vmSize
String

The size of the virtual machine hosting the Compute Node.

totalTasksRun
Nullable<Int32>

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.

runningTasksCount
Nullable<Int32>

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
Nullable<Int32>

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.

totalTasksSucceeded
Nullable<Int32>

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.

recentTasks
IList<TaskInformation>

A list of Tasks whose state has recently changed.

startTask
StartTask

The Task specified to run on the Compute Node as it joins the Pool.

startTaskInfo
StartTaskInformation

Runtime information about the execution of the StartTask on the Compute Node.

certificateReferences
IList<CertificateReference>

The list of Certificates installed on the Compute Node.

errors
IList<ComputeNodeError>

The list of errors that are currently being encountered by the Compute Node.

isDedicated
Nullable<Boolean>

Whether this Compute Node is a dedicated Compute Node. If false, the Compute Node is a Spot/Low-priority Compute Node.

endpointConfiguration
ComputeNodeEndpointConfiguration

The endpoint configuration for the Compute Node.

nodeAgentInfo
NodeAgentInformation

Information about the Compute Node agent version and the time the Compute Node upgraded to a new version.

virtualMachineInfo
VirtualMachineInfo

Info about the current state of the virtual machine.

Applies to