public class SiteInfoProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
private URI |
activeClusterUrl |
private long |
cachedContentExpirationMillis |
private Set<String> |
clusterUrls |
private int |
connectTimeoutMillis |
private Map<String,String> |
inputPortMap |
private ReadWriteLock |
listeningPortRWLock |
private InetAddress |
localAddress |
private Map<String,String> |
outputPortMap |
private HttpProxy |
proxy |
private int |
readTimeoutMillis |
private static long |
REMOTE_REFRESH_MILLIS |
private Lock |
remoteInfoReadLock |
private Lock |
remoteInfoWriteLock |
private long |
remoteRefreshTime |
private Integer |
siteToSiteHttpPort |
private Integer |
siteToSitePort |
private Boolean |
siteToSiteSecure |
private SSLContext |
sslContext |
| Constructor and Description |
|---|
SiteInfoProvider() |
private static final long REMOTE_REFRESH_MILLIS
private final ReadWriteLock listeningPortRWLock
private final Lock remoteInfoReadLock
private final Lock remoteInfoWriteLock
private Integer siteToSitePort
private Integer siteToSiteHttpPort
private Boolean siteToSiteSecure
private long remoteRefreshTime
private HttpProxy proxy
private InetAddress localAddress
private URI activeClusterUrl
private SSLContext sslContext
private int connectTimeoutMillis
private int readTimeoutMillis
private long cachedContentExpirationMillis
private ControllerDTO refreshRemoteInfo() throws IOException
IOExceptionprotected SiteToSiteRestApiClient createSiteToSiteRestApiClient(SSLContext sslContext, HttpProxy proxy)
public boolean isWebInterfaceSecure()
public Integer getSiteToSitePort() throws IOException
null if the remote instance
is not configured to allow site-to-site communications.IOException - if unable to communicate with the remote instancepublic Integer getSiteToSiteHttpPort() throws IOException
null if the remote instance
is not configured to allow site-to-site communications.IOException - if unable to communicate with the remote instancepublic boolean isSecure()
throws IOException
true if the remote instance is configured for secure
site-to-site communications, false otherwiseIOException - if unable to check if securepublic String getPortIdentifier(String portName, TransferDirection transferDirection) throws IOException
IOExceptionpublic String getInputPortIdentifier(String portName) throws IOException
IOExceptionpublic String getOutputPortIdentifier(String portName) throws IOException
IOExceptionprivate String getPortIdentifier(String portName, Map<String,String> portMap) throws IOException
IOExceptionpublic URI getActiveClusterUrl() throws IOException
IOExceptionpublic void setSslContext(SSLContext sslContext)
public void setConnectTimeoutMillis(int connectTimeoutMillis)
public void setReadTimeoutMillis(int readTimeoutMillis)
public void setCachedContentsExpirationMillis(long expirationMillis)
public void setProxy(HttpProxy proxy)
public void setLocalAddress(InetAddress localAddress)
Copyright © 2023 Apache NiFi Project. All rights reserved.