public class ClusterNodeList extends AdminResult
Constructor and Description |
---|
ClusterNodeList()
The default constructor.
|
ClusterNodeList(java.util.ArrayList<ClusterNode> nodes)
Constructs a
ClusterNodeList using the specified nodes. |
ClusterNodeList(ClusterNode... nodes)
Constructs a
ClusterNodeList using the specified nodes. |
ClusterNodeList(int responseCode,
java.lang.String errorMessage)
Constructs a
ClubsterNodeList using the specified response code and error message. |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<ClusterNode> |
getNodes()
Retrieves the nodes in the cluster.
|
void |
setNodes(java.util.ArrayList<ClusterNode> nodes)
Sets the nodes in a cluster.
|
void |
throwExceptionIfError()
Translates between the response code and corresponding exception thrown on the client.
|
getErrorMessage, getResponseCode, setErrorMessage, setResponseCode
public ClusterNodeList(java.util.ArrayList<ClusterNode> nodes)
ClusterNodeList
using the specified nodes.nodes
- The nodes.ClusterNode
public ClusterNodeList(ClusterNode... nodes)
ClusterNodeList
using the specified nodes.nodes
- The nodes.ClusterNode
public ClusterNodeList(int responseCode, java.lang.String errorMessage)
ClubsterNodeList
using the specified response code and error message.responseCode
- The response code.errorMessage
- The message describing the error.ResponseCodes
public ClusterNodeList()
public java.util.ArrayList<ClusterNode> getNodes()
ClusterNode
list.ClusterNode
public void setNodes(java.util.ArrayList<ClusterNode> nodes)
nodes
- The nodes.ClusterNode
public void throwExceptionIfError() throws NotAuthenticatedException, java.lang.IllegalArgumentException
JobDoesNotExistException
NotAuthenticatedException
java.lang.IllegalArgumentException