public class ClusterNode extends Object implements Serializable
The identifier of a node in a cluster. -->
Constructor and Description |
---|
ClusterNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getNodeRole()
Whether the node is a leader node or a compute node.
|
String |
getPrivateIPAddress()
The private IP address of a node within a cluster.
|
String |
getPublicIPAddress()
The public IP address of a node within a cluster.
|
int |
hashCode() |
void |
setNodeRole(String nodeRole)
Whether the node is a leader node or a compute node.
|
void |
setPrivateIPAddress(String privateIPAddress)
The private IP address of a node within a cluster.
|
void |
setPublicIPAddress(String publicIPAddress)
The public IP address of a node within a cluster.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClusterNode |
withNodeRole(String nodeRole)
Whether the node is a leader node or a compute node.
|
ClusterNode |
withPrivateIPAddress(String privateIPAddress)
The private IP address of a node within a cluster.
|
ClusterNode |
withPublicIPAddress(String publicIPAddress)
The public IP address of a node within a cluster.
|
public String getNodeRole()
public void setNodeRole(String nodeRole)
nodeRole
- Whether the node is a leader node or a compute node.public ClusterNode withNodeRole(String nodeRole)
Returns a reference to this object so that method calls can be chained together.
nodeRole
- Whether the node is a leader node or a compute node.public String getPrivateIPAddress()
public void setPrivateIPAddress(String privateIPAddress)
privateIPAddress
- The private IP address of a node within a cluster.public ClusterNode withPrivateIPAddress(String privateIPAddress)
Returns a reference to this object so that method calls can be chained together.
privateIPAddress
- The private IP address of a node within a cluster.public String getPublicIPAddress()
public void setPublicIPAddress(String publicIPAddress)
publicIPAddress
- The public IP address of a node within a cluster.public ClusterNode withPublicIPAddress(String publicIPAddress)
Returns a reference to this object so that method calls can be chained together.
publicIPAddress
- The public IP address of a node within a cluster.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.