ComputeNode Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. ComputeNode
- com.
public class ComputeNode
A compute node in the Batch service.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
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. |
DateTime |
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. |
List<Certificate |
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. |
Compute |
endpointConfiguration()
Get the endpointConfiguration value. |
List<Compute |
errors()
Get the errors value. |
String |
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. |
String |
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. |
Boolean |
isDedicated()
Get the isDedicated value. |
DateTime |
lastBootTime()
Get this property may not be present if the node state is unusable. |
Node |
nodeAgentInfo()
Get the nodeAgentInfo value. |
List<Task |
recentTasks()
Get this property is present only if at least one task has run on this node since it was assigned to the pool. |
Integer |
runningTasksCount()
Get the runningTasksCount value. |
Scheduling |
schedulingState()
Get possible values include: 'enabled', 'disabled'. |
Start |
startTask()
Get the startTask value. |
Start |
startTaskInfo()
Get the startTaskInfo value. |
Compute |
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'. |
DateTime |
stateTransitionTime()
Get the stateTransitionTime value. |
Integer |
totalTasksRun()
Get the totalTasksRun value. |
Integer |
totalTasksSucceeded()
Get the totalTasksSucceeded value. |
String |
url()
Get the url value. |
String |
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). |
Compute |
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. |
Compute |
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. |
Compute |
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. |
Compute |
withEndpointConfiguration(ComputeNodeEndpointConfiguration endpointConfiguration)
Set the endpointConfiguration value. |
Compute |
withErrors(List<ComputeNodeError> errors)
Set the errors value. |
Compute |
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. |
Compute |
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. |
Compute |
withIsDedicated(Boolean isDedicated)
Set the isDedicated value. |
Compute |
withLastBootTime(DateTime lastBootTime)
Set this property may not be present if the node state is unusable. |
Compute |
withNodeAgentInfo(NodeAgentInformation nodeAgentInfo)
Set the nodeAgentInfo value. |
Compute |
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. |
Compute |
withRunningTasksCount(Integer runningTasksCount)
Set the runningTasksCount value. |
Compute |
withSchedulingState(SchedulingState schedulingState)
Set possible values include: 'enabled', 'disabled'. |
Compute |
withStartTask(StartTask startTask)
Set the startTask value. |
Compute |
withStartTaskInfo(StartTaskInformation startTaskInfo)
Set the startTaskInfo value. |
Compute |
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'. |
Compute |
withStateTransitionTime(DateTime stateTransitionTime)
Set the stateTransitionTime value. |
Compute |
withTotalTasksRun(Integer totalTasksRun)
Set the totalTasksRun value. |
Compute |
withTotalTasksSucceeded(Integer totalTasksSucceeded)
Set the totalTasksSucceeded value. |
Compute |
withUrl(String url)
Set the url value. |
Compute |
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). |
Method Details
affinityId
public String 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.
Returns:
allocationTime
public DateTime 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.
Returns:
certificateReferences
public List
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.
Returns:
endpointConfiguration
public ComputeNodeEndpointConfiguration endpointConfiguration()
Get the endpointConfiguration value.
Returns:
errors
public List
Get the errors value.
Returns:
id
public String 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.
Returns:
ipAddress
public String 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.
Returns:
isDedicated
public Boolean isDedicated()
Get the isDedicated value.
Returns:
lastBootTime
public DateTime lastBootTime()
Get this property may not be present if the node state is unusable.
Returns:
nodeAgentInfo
public NodeAgentInformation nodeAgentInfo()
Get the nodeAgentInfo value.
Returns:
recentTasks
public List
Get this property is present only if at least one task has run on this node since it was assigned to the pool.
Returns:
runningTasksCount
public Integer runningTasksCount()
Get the runningTasksCount value.
Returns:
schedulingState
public SchedulingState schedulingState()
Get possible values include: 'enabled', 'disabled'.
Returns:
startTask
public StartTask startTask()
Get the startTask value.
Returns:
startTaskInfo
public StartTaskInformation startTaskInfo()
Get the startTaskInfo value.
Returns:
state
public ComputeNodeState 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'.
Returns:
stateTransitionTime
public DateTime stateTransitionTime()
Get the stateTransitionTime value.
Returns:
totalTasksRun
public Integer totalTasksRun()
Get the totalTasksRun value.
Returns:
totalTasksSucceeded
public Integer totalTasksSucceeded()
Get the totalTasksSucceeded value.
Returns:
url
public String url()
Get the url value.
Returns:
vmSize
public String 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).
Returns:
withAffinityId
public ComputeNode 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.
Parameters:
Returns:
withAllocationTime
public ComputeNode 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.
Parameters:
Returns:
withCertificateReferences
public ComputeNode withCertificateReferences(List
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.
Parameters:
Returns:
withEndpointConfiguration
public ComputeNode withEndpointConfiguration(ComputeNodeEndpointConfiguration endpointConfiguration)
Set the endpointConfiguration value.
Parameters:
Returns:
withErrors
public ComputeNode withErrors(List
Set the errors value.
Parameters:
Returns:
withId
public ComputeNode 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.
Parameters:
Returns:
withIpAddress
public ComputeNode 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.
Parameters:
Returns:
withIsDedicated
public ComputeNode withIsDedicated(Boolean isDedicated)
Set the isDedicated value.
Parameters:
Returns:
withLastBootTime
public ComputeNode withLastBootTime(DateTime lastBootTime)
Set this property may not be present if the node state is unusable.
Parameters:
Returns:
withNodeAgentInfo
public ComputeNode withNodeAgentInfo(NodeAgentInformation nodeAgentInfo)
Set the nodeAgentInfo value.
Parameters:
Returns:
withRecentTasks
public ComputeNode withRecentTasks(List
Set this property is present only if at least one task has run on this node since it was assigned to the pool.
Parameters:
Returns:
withRunningTasksCount
public ComputeNode withRunningTasksCount(Integer runningTasksCount)
Set the runningTasksCount value.
Parameters:
Returns:
withSchedulingState
public ComputeNode withSchedulingState(SchedulingState schedulingState)
Set possible values include: 'enabled', 'disabled'.
Parameters:
Returns:
withStartTask
public ComputeNode withStartTask(StartTask startTask)
Set the startTask value.
Parameters:
Returns:
withStartTaskInfo
public ComputeNode withStartTaskInfo(StartTaskInformation startTaskInfo)
Set the startTaskInfo value.
Parameters:
Returns:
withState
public ComputeNode 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'.
Parameters:
Returns:
withStateTransitionTime
public ComputeNode withStateTransitionTime(DateTime stateTransitionTime)
Set the stateTransitionTime value.
Parameters:
Returns:
withTotalTasksRun
public ComputeNode withTotalTasksRun(Integer totalTasksRun)
Set the totalTasksRun value.
Parameters:
Returns:
withTotalTasksSucceeded
public ComputeNode withTotalTasksSucceeded(Integer totalTasksSucceeded)
Set the totalTasksSucceeded value.
Parameters:
Returns:
withUrl
public ComputeNode withUrl(String url)
Set the url value.
Parameters:
Returns:
withVmSize
public ComputeNode 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).
Parameters:
Returns:
Applies to
Azure SDK for Java