public class NodeIdentifier extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
apiAddress
the IP or hostname to use for sending requests to the node's external
interface
|
private int |
apiPort
the port to use use for sending requests to the node's external interface
|
private String |
id
the unique identifier for the node
|
private String |
nodeDn |
private String |
socketAddress
the IP or hostname to use for sending requests to the node's internal
interface
|
private int |
socketPort
the port to use use for sending requests to the node's internal interface
|
| Constructor and Description |
|---|
NodeIdentifier(String id,
String apiAddress,
int apiPort,
String socketAddress,
int socketPort) |
NodeIdentifier(String id,
String apiAddress,
int apiPort,
String socketAddress,
int socketPort,
String dn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares the id of two node identifiers for equality.
|
String |
getApiAddress() |
int |
getApiPort() |
String |
getDN() |
String |
getId() |
String |
getSocketAddress() |
int |
getSocketPort() |
int |
hashCode() |
boolean |
logicallyEquals(NodeIdentifier other)
Compares API address/port and socket address/port for equality.
|
String |
toString() |
private void |
validatePort(int port) |
private final String id
private final String apiAddress
private final int apiPort
private final String socketAddress
private final int socketPort
private final String nodeDn
public NodeIdentifier(String id, String apiAddress, int apiPort, String socketAddress, int socketPort)
public String getId()
public String getDN()
public String getApiAddress()
public int getApiPort()
public String getSocketAddress()
public int getSocketPort()
private void validatePort(int port)
public boolean equals(Object obj)
public boolean logicallyEquals(NodeIdentifier other)
other - a node identifierCopyright © 2015 Apache NiFi(incubating) Project. All rights reserved.