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,
this can be HTTP API port or HTTPS API port depending on whether //TODO: .
|
private String |
id
the unique identifier for the node
|
private String |
loadBalanceAddress
The IP or hostname to use for sending FlowFiles when load balancing a connection
|
private int |
loadBalancePort
the port to use for sending FlowFiles when load balancing a connection
|
private Set<String> |
nodeIdentities |
private String |
siteToSiteAddress
the IP or hostname that external clients should use to communicate with this node via Site-to-Site
|
private Integer |
siteToSiteHttpApiPort
the port that external clients should use to communicate with this node via Site-to-Site HTTP protocol,
this can be HTTP API port or HTTPS API port depending on whether siteToSiteSecure or not.
|
private Integer |
siteToSitePort
the port that external clients should use to communicate with this node via Site-to-Site RAW Socket protocol
|
private Boolean |
siteToSiteSecure
whether or not site-to-site communications with this node are secure
|
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 for sending requests to the node's internal interface
|
| Constructor and Description |
|---|
NodeIdentifier()
This constructor should not be used and exists solely for the use of JAXB
|
NodeIdentifier(String id,
String apiAddress,
int apiPort,
String socketAddress,
int socketPort,
String siteToSiteAddress,
Integer siteToSitePort,
Integer siteToSiteHttpApiPort,
boolean siteToSiteSecure) |
NodeIdentifier(String id,
String apiAddress,
int apiPort,
String socketAddress,
int socketPort,
String loadBalanceAddress,
int loadBalancePort,
String siteToSiteAddress,
Integer siteToSitePort,
Integer siteToSiteHttpApiPort,
boolean siteToSiteSecure) |
NodeIdentifier(String id,
String apiAddress,
int apiPort,
String socketAddress,
int socketPort,
String loadBalanceAddress,
int loadBalancePort,
String siteToSiteAddress,
Integer siteToSitePort,
Integer siteToSiteHttpApiPort,
boolean siteToSiteSecure,
Set<String> nodeIdentities) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares the id of two node identifiers for equality.
|
String |
getApiAddress() |
int |
getApiPort() |
String |
getFullDescription() |
String |
getId() |
String |
getLoadBalanceAddress() |
int |
getLoadBalancePort() |
Set<String> |
getNodeIdentities() |
String |
getSiteToSiteAddress() |
Integer |
getSiteToSiteHttpApiPort() |
Integer |
getSiteToSitePort() |
String |
getSocketAddress() |
int |
getSocketPort() |
int |
hashCode() |
boolean |
isSiteToSiteSecure() |
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 loadBalanceAddress
private final int loadBalancePort
private final String siteToSiteAddress
private final Integer siteToSitePort
private final Integer siteToSiteHttpApiPort
private final Boolean siteToSiteSecure
public NodeIdentifier(String id, String apiAddress, int apiPort, String socketAddress, int socketPort, String siteToSiteAddress, Integer siteToSitePort, Integer siteToSiteHttpApiPort, boolean siteToSiteSecure)
public NodeIdentifier(String id, String apiAddress, int apiPort, String socketAddress, int socketPort, String loadBalanceAddress, int loadBalancePort, String siteToSiteAddress, Integer siteToSitePort, Integer siteToSiteHttpApiPort, boolean siteToSiteSecure)
public NodeIdentifier(String id, String apiAddress, int apiPort, String socketAddress, int socketPort, String loadBalanceAddress, int loadBalancePort, String siteToSiteAddress, Integer siteToSitePort, Integer siteToSiteHttpApiPort, boolean siteToSiteSecure, Set<String> nodeIdentities)
public NodeIdentifier()
public String getId()
public String getApiAddress()
public int getApiPort()
public String getSocketAddress()
public int getSocketPort()
public String getLoadBalanceAddress()
public int getLoadBalancePort()
private void validatePort(int port)
public String getSiteToSiteAddress()
public Integer getSiteToSitePort()
public Integer getSiteToSiteHttpApiPort()
public boolean isSiteToSiteSecure()
public boolean equals(Object obj)
public boolean logicallyEquals(NodeIdentifier other)
other - a node identifierpublic String getFullDescription()
Copyright © 2020 Apache NiFi Project. All rights reserved.