ComputeNode 类
定义
A compute node in the Batch service.
public class ComputeNode
- 继承
-
java.lang.ObjectComputeNode
方法
affinityId() |
Get 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.
|
allocationTime() |
Get this is the time when the node was initially allocated and doesn't change once set. It is not updated when the node is service healed or preempted.
|
certificateReferences() |
Get for Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
|
endpointConfiguration() |
Get the endpointConfiguration value.
|
errors() |
Get the errors value.
|
id() |
Get every node that is added to a pool is assigned a unique ID. Whenever a node is removed from a pool, all of its local files are deleted, and the ID is reclaimed and could be reused for new nodes.
|
ipAddress() |
Get every node that is added to a pool is assigned a unique IP address. Whenever a node is removed from a pool, all of its local files are deleted, and the IP address is reclaimed and could be reused for new nodes.
|
isDedicated() |
Get the isDedicated value.
|
lastBootTime() |
Get this property may not be present if the node state is unusable.
|
nodeAgentInfo() |
Get the nodeAgentInfo value.
|
recentTasks() |
Get this property is present only if at least one task has run on this node since it was assigned to the pool.
|
runningTasksCount() |
Get the runningTasksCount value.
|
schedulingState() |
Get possible values include: 'enabled', 'disabled'.
|
startTask() |
Get the startTask value.
|
startTaskInfo() |
Get the startTaskInfo value.
|
state() |
Get the low-priority node has been preempted. Tasks which were running on the node when it was pre-empted will be rescheduled when another node becomes available. Possible values include: 'idle', 'rebooting', 'reimaging', 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted'.
|
stateTransitionTime() |
Get the stateTransitionTime value.
|
totalTasksRun() |
Get the totalTasksRun value.
|
totalTasksSucceeded() |
Get the totalTasksSucceeded value.
|
url() |
Get the url value.
|
vmSize() |
Get for information about available sizes of virtual machines in pools, see Choose a VM size for compute nodes in an Azure Batch pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).
|
withAffinityId(String affinityId) |
Set 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.
|
withAllocationTime(DateTime allocationTime) |
Set this is the time when the node was initially allocated and doesn't change once set. It is not updated when the node is service healed or preempted.
|
withCertificateReferences(List<CertificateReference> certificateReferences) |
Set for Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
|
withEndpointConfiguration(ComputeNodeEndpointConfiguration endpointConfiguration) |
Set the endpointConfiguration value.
|
withErrors(List<ComputeNodeError> errors) |
Set the errors value.
|
withId(String id) |
Set every node that is added to a pool is assigned a unique ID. Whenever a node is removed from a pool, all of its local files are deleted, and the ID is reclaimed and could be reused for new nodes.
|
withIpAddress(String ipAddress) |
Set every node that is added to a pool is assigned a unique IP address. Whenever a node is removed from a pool, all of its local files are deleted, and the IP address is reclaimed and could be reused for new nodes.
|
withIsDedicated(Boolean isDedicated) |
Set the isDedicated value.
|
withLastBootTime(DateTime lastBootTime) |
Set this property may not be present if the node state is unusable.
|
withNodeAgentInfo(NodeAgentInformation nodeAgentInfo) |
Set the nodeAgentInfo value.
|
withRecentTasks(List<TaskInformation> recentTasks) |
Set this property is present only if at least one task has run on this node since it was assigned to the pool.
|
withRunningTasksCount(Integer runningTasksCount) |
Set the runningTasksCount value.
|
withSchedulingState(SchedulingState schedulingState) |
Set possible values include: 'enabled', 'disabled'.
|
withStartTask(StartTask startTask) |
Set the startTask value.
|
withStartTaskInfo(StartTaskInformation startTaskInfo) |
Set the startTaskInfo value.
|
withState(ComputeNodeState state) |
Set the low-priority node has been preempted. Tasks which were running on the node when it was pre-empted will be rescheduled when another node becomes available. Possible values include: 'idle', 'rebooting', 'reimaging', 'running', 'unusable', 'creating', 'starting', 'waitingForStartTask', 'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted'.
|
withStateTransitionTime(DateTime stateTransitionTime) |
Set the stateTransitionTime value.
|
withTotalTasksRun(Integer totalTasksRun) |
Set the totalTasksRun value.
|
withTotalTasksSucceeded(Integer totalTasksSucceeded) |
Set the totalTasksSucceeded value.
|
withUrl(String url) |
Set the url value.
|
withVmSize(String vmSize) |
Set for information about available sizes of virtual machines in pools, see Choose a VM size for compute nodes in an Azure Batch pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).
|