public class ClusterNodeJobUpdateRequest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterNodeJobUpdateRequest.Action
Lists the actions that can be performed on a job in a cluster.
|
Constructor and Description |
---|
ClusterNodeJobUpdateRequest()
The default constructor.
|
ClusterNodeJobUpdateRequest(ClusterNodeJobUpdateRequest.Action action,
java.lang.String toNode,
NodeType toNodeType)
Constructs a
ClusterNodeJobUpdateRequest object with the specified action, node name and node type. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction()
Retrieves the action to be performed.
|
java.lang.String |
getToNode()
Retrieves the name of the node to reschedule to.
|
java.lang.String |
getToNodeType()
Retrieves the type of node.
|
void |
setAction(java.lang.String action)
Sets the action.
|
void |
setToNode(java.lang.String toNode)
Sets the name of the node to reschedule to.
|
void |
setToNodeType(java.lang.String toNodeType)
Sets the type of node.
|
public ClusterNodeJobUpdateRequest(ClusterNodeJobUpdateRequest.Action action, java.lang.String toNode, NodeType toNodeType)
ClusterNodeJobUpdateRequest
object with the specified action, node name and node type.action
- The action to perform.toNode
- The name of the node to reschedule to.toNodeType
- The type of node. Can be Manager or Worker.public ClusterNodeJobUpdateRequest()
public java.lang.String getAction()
public void setAction(java.lang.String action)
action
- The action.public java.lang.String getToNode()
public void setToNode(java.lang.String toNode)
toNode
- The name of the node.public java.lang.String getToNodeType()
public void setToNodeType(java.lang.String toNodeType)
toNodeType
- The node type. Can be Manager or Worker.