public class ComputeNodeOperations extends Object implements IInheritedBehaviors
Modifier and Type | Method and Description |
---|---|
void |
addComputeNodeUser(String poolId,
String nodeId,
ComputeNodeUser user)
Adds a user account to the specified compute node.
|
void |
addComputeNodeUser(String poolId,
String nodeId,
ComputeNodeUser user,
Iterable<BatchClientBehavior> additionalBehaviors)
Adds a user account to the specified compute node.
|
Collection<BatchClientBehavior> |
customBehaviors()
Gets a collection of behaviors that modify or customize requests to the Batch service.
|
void |
deleteComputeNodeUser(String poolId,
String nodeId,
String userName)
Deletes the specified user account from the specified compute node.
|
void |
deleteComputeNodeUser(String poolId,
String nodeId,
String userName,
Iterable<BatchClientBehavior> additionalBehaviors)
Deletes the specified user account from the specified compute node.
|
void |
disableComputeNodeScheduling(String poolId,
String nodeId)
Disables task scheduling on the specified compute node.
|
void |
disableComputeNodeScheduling(String poolId,
String nodeId,
DisableComputeNodeSchedulingOption nodeDisableSchedulingOption)
Disables task scheduling on the specified compute node.
|
void |
disableComputeNodeScheduling(String poolId,
String nodeId,
DisableComputeNodeSchedulingOption nodeDisableSchedulingOption,
Iterable<BatchClientBehavior> additionalBehaviors)
Disables task scheduling on the specified compute node.
|
void |
enableComputeNodeScheduling(String poolId,
String nodeId)
Enables task scheduling on the specified compute node.
|
void |
enableComputeNodeScheduling(String poolId,
String nodeId,
Iterable<BatchClientBehavior> additionalBehaviors)
Enables task scheduling on the specified compute node.
|
ComputeNode |
getComputeNode(String poolId,
String nodeId)
Gets the specified compute node.
|
ComputeNode |
getComputeNode(String poolId,
String nodeId,
DetailLevel detailLevel)
Gets the specified compute node.
|
ComputeNode |
getComputeNode(String poolId,
String nodeId,
DetailLevel detailLevel,
Iterable<BatchClientBehavior> additionalBehaviors)
Gets the specified compute node.
|
String |
getComputeNodeRemoteDesktop(String poolId,
String nodeId)
Gets a Remote Desktop Protocol (RDP) file for the specified node.
|
String |
getComputeNodeRemoteDesktop(String poolId,
String nodeId,
Iterable<BatchClientBehavior> additionalBehaviors)
Gets a Remote Desktop Protocol (RDP) file for the specified node.
|
ComputeNodeGetRemoteLoginSettingsResult |
getComputeNodeRemoteLoginSettings(String poolId,
String nodeId)
Gets the settings required for remote login to a compute node.
|
ComputeNodeGetRemoteLoginSettingsResult |
getComputeNodeRemoteLoginSettings(String poolId,
String nodeId,
Iterable<BatchClientBehavior> additionalBehaviors)
Gets the settings required for remote login to a compute node.
|
List<ComputeNode> |
listComputeNodes(String poolId)
Lists the
compute nodes of the specified pool. |
List<ComputeNode> |
listComputeNodes(String poolId,
DetailLevel detailLevel)
Lists the
compute nodes of the specified pool. |
List<ComputeNode> |
listComputeNodes(String poolId,
DetailLevel detailLevel,
Iterable<BatchClientBehavior> additionalBehaviors)
Lists the
compute nodes of the specified pool. |
void |
rebootComputeNode(String poolId,
String nodeId)
Reboots the specified compute node.
|
void |
rebootComputeNode(String poolId,
String nodeId,
ComputeNodeRebootOption nodeRebootOption)
Reboots the specified compute node.
|
void |
rebootComputeNode(String poolId,
String nodeId,
ComputeNodeRebootOption nodeRebootOption,
Iterable<BatchClientBehavior> additionalBehaviors)
Reboots the specified compute node.
|
void |
reimageComputeNode(String poolId,
String nodeId)
Reinstalls the operating system on the specified compute node.
|
void |
reimageComputeNode(String poolId,
String nodeId,
ComputeNodeReimageOption nodeReimageOption)
Reinstalls the operating system on the specified compute node.
|
void |
reimageComputeNode(String poolId,
String nodeId,
ComputeNodeReimageOption nodeReimageOption,
Iterable<BatchClientBehavior> additionalBehaviors)
Reinstalls the operating system on the specified compute node.
|
void |
updateComputeNodeUser(String poolId,
String nodeId,
String userName,
String sshPublicKey)
Updates the specified user account on the specified compute node.
|
void |
updateComputeNodeUser(String poolId,
String nodeId,
String userName,
String password,
org.joda.time.DateTime expiryTime)
Updates the specified user account on the specified compute node.
|
void |
updateComputeNodeUser(String poolId,
String nodeId,
String userName,
String password,
org.joda.time.DateTime expiryTime,
Iterable<BatchClientBehavior> additionalBehaviors)
Updates the specified user account on the specified compute node.
|
void |
updateComputeNodeUser(String poolId,
String nodeId,
String userName,
String sshPublicKey,
Iterable<BatchClientBehavior> additionalBehaviors)
Updates the specified user account on the specified compute node.
|
IInheritedBehaviors |
withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service.
|
public Collection<BatchClientBehavior> customBehaviors()
customBehaviors
in interface IInheritedBehaviors
BatchClientBehavior
instances.public IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
withCustomBehaviors
in interface IInheritedBehaviors
behaviors
- The collection of BatchClientBehavior
instances.public void addComputeNodeUser(String poolId, String nodeId, ComputeNodeUser user) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node where the user account will be created.user
- The user account to be created.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void addComputeNodeUser(String poolId, String nodeId, ComputeNodeUser user, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node where the user account will be created.user
- The user account to be created.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void deleteComputeNodeUser(String poolId, String nodeId, String userName) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node where the user account will be deleted.userName
- The name of the user account to be deleted.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void deleteComputeNodeUser(String poolId, String nodeId, String userName, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node where the user account will be deleted.userName
- The name of the user account to be deleted.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void updateComputeNodeUser(String poolId, String nodeId, String userName, String password, org.joda.time.DateTime expiryTime) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node where the user account will be updated.userName
- The name of the user account to update.password
- The password of the account. If null, the password is removed.expiryTime
- The time at which the account should expire. If null, the expiry time is replaced with its default value.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void updateComputeNodeUser(String poolId, String nodeId, String userName, String password, org.joda.time.DateTime expiryTime, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node where the user account will be updated.userName
- The name of the user account to update.password
- The password of the account. If null, the password is removed.expiryTime
- The time at which the account should expire. If null, the expiry time is replaced with its default value.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void updateComputeNodeUser(String poolId, String nodeId, String userName, String sshPublicKey) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node where the user account will be updated.userName
- The name of the user account to update.sshPublicKey
- The SSH public key that can be used for remote login to the compute node. If null, the SSH public key is removed.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void updateComputeNodeUser(String poolId, String nodeId, String userName, String sshPublicKey, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node where the user account will be updated.userName
- The name of the user account to update.sshPublicKey
- The SSH public key that can be used for remote login to the compute node. If null, the SSH public key is removed.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public ComputeNode getComputeNode(String poolId, String nodeId) throws BatchErrorException, IOException
poolId
- The ID of the pool.nodeId
- the ID of the compute node to get from the pool.ComputeNode
containing information about the specified compute node.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public ComputeNode getComputeNode(String poolId, String nodeId, DetailLevel detailLevel) throws BatchErrorException, IOException
poolId
- The ID of the pool.nodeId
- The ID of the compute node to get from the pool.detailLevel
- A DetailLevel
used for controlling which properties are retrieved from the service.ComputeNode
containing information about the specified compute node.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public ComputeNode getComputeNode(String poolId, String nodeId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool.nodeId
- The ID of the compute node to get from the pool.detailLevel
- A DetailLevel
used for controlling which properties are retrieved from the service.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.ComputeNode
containing information about the specified compute node.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void rebootComputeNode(String poolId, String nodeId) throws BatchErrorException, IOException
You can reboot a compute node only when it is in the Idle
or Running
state.
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node to reboot.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void rebootComputeNode(String poolId, String nodeId, ComputeNodeRebootOption nodeRebootOption) throws BatchErrorException, IOException
You can reboot a compute node only when it is in the Idle
or Running
state.
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node to reboot.nodeRebootOption
- Specifies when to reboot the node and what to do with currently running tasks.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void rebootComputeNode(String poolId, String nodeId, ComputeNodeRebootOption nodeRebootOption, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
You can reboot a compute node only when it is in the Idle
or Running
state.
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node to reboot.nodeRebootOption
- Specifies when to reboot the node and what to do with currently running tasks.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void reimageComputeNode(String poolId, String nodeId) throws BatchErrorException, IOException
You can reimage a compute node only when it is in the Idle
or Running
state.
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node to reimage.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void reimageComputeNode(String poolId, String nodeId, ComputeNodeReimageOption nodeReimageOption) throws BatchErrorException, IOException
You can reimage a compute node only when it is in the Idle
or Running
state.
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node to reimage.nodeReimageOption
- Specifies when to reimage the node and what to do with currently running tasks.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void reimageComputeNode(String poolId, String nodeId, ComputeNodeReimageOption nodeReimageOption, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
You can reimage a compute node only when it is in the Idle
or Running
state.
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node to reimage.nodeReimageOption
- Specifies when to reimage the node and what to do with currently running tasks.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void disableComputeNodeScheduling(String poolId, String nodeId) throws BatchErrorException, IOException
poolId
- The ID of the pool.nodeId
- the ID of the compute node.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void disableComputeNodeScheduling(String poolId, String nodeId, DisableComputeNodeSchedulingOption nodeDisableSchedulingOption) throws BatchErrorException, IOException
poolId
- The ID of the pool.nodeId
- The ID of the compute node.nodeDisableSchedulingOption
- Specifies what to do with currently running tasks.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void disableComputeNodeScheduling(String poolId, String nodeId, DisableComputeNodeSchedulingOption nodeDisableSchedulingOption, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool.nodeId
- The ID of the compute node.nodeDisableSchedulingOption
- Specifies what to do with currently running tasks.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void enableComputeNodeScheduling(String poolId, String nodeId) throws BatchErrorException, IOException
poolId
- The ID of the pool.nodeId
- The ID of the compute node.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public void enableComputeNodeScheduling(String poolId, String nodeId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool.nodeId
- The ID of the compute node.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public String getComputeNodeRemoteDesktop(String poolId, String nodeId) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node for which to get a Remote Desktop file.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public String getComputeNodeRemoteDesktop(String poolId, String nodeId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node for which to get a Remote Desktop file.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public ComputeNodeGetRemoteLoginSettingsResult getComputeNodeRemoteLoginSettings(String poolId, String nodeId) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node for which to get a remote login settings.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public ComputeNodeGetRemoteLoginSettingsResult getComputeNodeRemoteLoginSettings(String poolId, String nodeId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
poolId
- The ID of the pool that contains the compute node.nodeId
- The ID of the compute node for which to get a remote login settings.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public List<ComputeNode> listComputeNodes(String poolId) throws BatchErrorException, IOException
compute nodes
of the specified pool.poolId
- The ID of the pool.ComputeNode
objects.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public List<ComputeNode> listComputeNodes(String poolId, DetailLevel detailLevel) throws BatchErrorException, IOException
compute nodes
of the specified pool.poolId
- The ID of the pool.detailLevel
- A DetailLevel
used for filtering the list and for controlling which properties are retrieved from the service.ComputeNode
objects.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.public List<ComputeNode> listComputeNodes(String poolId, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException
compute nodes
of the specified pool.poolId
- The ID of the pool.detailLevel
- A DetailLevel
used for filtering the list and for controlling which properties are retrieved from the service.additionalBehaviors
- A collection of BatchClientBehavior
instances that are applied to the Batch service request.ComputeNode
objects.BatchErrorException
- Exception thrown when an error response is received from the Batch service.IOException
- Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.Copyright © 2019. All rights reserved.