Package org.apache.nifi.remote.client
Class SiteToSiteClient.StandardSiteToSiteClientConfig
java.lang.Object
org.apache.nifi.remote.client.SiteToSiteClient.StandardSiteToSiteClientConfig
- All Implemented Interfaces:
Serializable
,SiteToSiteClientConfig
- Enclosing interface:
SiteToSiteClient
public static class SiteToSiteClient.StandardSiteToSiteClientConfig
extends Object
implements SiteToSiteClientConfig, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final long
private final long
private final long
private final EventReporter
private final HttpProxy
private final long
private final String
private final String
private final KeystoreType
private final InetAddress
private final File
private final long
private final String
private final String
private static final long
private final SSLContext
private final StateManager
private final long
private final SiteToSiteTransportProtocol
private final String
private final String
private final KeystoreType
private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
private
-
Method Summary
Modifier and TypeMethodDescriptionlong
getCacheExpiration
(TimeUnit timeUnit) When the contents of a remote NiFi instance are fetched, that information is cached so that many calls that are made in a short period of time do not overwhelm the remote NiFi instance.Return Proxy for HTTP Transport Protocol.long
getIdleConnectionExpiration
(TimeUnit timeUnit) long
getPenalizationPeriod
(TimeUnit timeUnit) int
When pulling data from a NiFi instance, the sender chooses how large a Transaction is.long
getPreferredBatchDuration
(TimeUnit timeUnit) When pulling data from a NiFi instance, the sender chooses how large a Transaction is.long
When pulling data from a NiFi instance, the sender chooses how large a Transaction is.long
getTimeout
(TimeUnit timeUnit) getUrls()
SiteToSite implementations should support multiple URLs when establishing a SiteToSite connection with a remote NiFi instance to provide robust connectivity so that it can keep working as long as at least one of the configured URLs is accessible.boolean
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
urls
-
timeoutNanos
private final long timeoutNanos -
penalizationNanos
private final long penalizationNanos -
idleExpirationNanos
private final long idleExpirationNanos -
contentsCacheExpirationMillis
private final long contentsCacheExpirationMillis -
sslContext
-
keystoreFilename
-
keystorePass
-
keystoreType
-
truststoreFilename
-
truststorePass
-
truststoreType
-
eventReporter
-
peerPersistenceFile
-
stateManager
-
useCompression
private final boolean useCompression -
transportProtocol
-
portName
-
portIdentifier
-
batchCount
private final int batchCount -
batchSize
private final long batchSize -
batchNanos
private final long batchNanos -
httpProxy
-
localAddress
-
-
Constructor Details
-
StandardSiteToSiteClientConfig
private StandardSiteToSiteClientConfig() -
StandardSiteToSiteClientConfig
-
-
Method Details
-
isUseCompression
public boolean isUseCompression()- Specified by:
isUseCompression
in interfaceSiteToSiteClientConfig
- Returns:
- a boolean indicating whether or not compression will be used to transfer data to and from the remote instance
-
getUrls
Description copied from interface:SiteToSiteClientConfig
SiteToSite implementations should support multiple URLs when establishing a SiteToSite connection with a remote NiFi instance to provide robust connectivity so that it can keep working as long as at least one of the configured URLs is accessible.- Specified by:
getUrls
in interfaceSiteToSiteClientConfig
- Returns:
- the configured URLs for the remote NiFi instances.
-
getTimeout
- Specified by:
getTimeout
in interfaceSiteToSiteClientConfig
- Parameters:
timeUnit
- unit over which to report the timeout- Returns:
- the communications timeout in given unit
-
getCacheExpiration
Description copied from interface:SiteToSiteClientConfig
When the contents of a remote NiFi instance are fetched, that information is cached so that many calls that are made in a short period of time do not overwhelm the remote NiFi instance. This method will indicate the number of milliseconds that this information can be cached.- Specified by:
getCacheExpiration
in interfaceSiteToSiteClientConfig
- Parameters:
timeUnit
- the desired time unit- Returns:
- the number of milliseconds that the contents of a remote NiFi instance will be cached
-
getIdleConnectionExpiration
- Specified by:
getIdleConnectionExpiration
in interfaceSiteToSiteClientConfig
- Parameters:
timeUnit
- the unit for which to report the time- Returns:
- the amount of time that a connection can remain idle before it is "expired" and shut down
-
getSslContext
- Specified by:
getSslContext
in interfaceSiteToSiteClientConfig
- Returns:
- the SSL Context that is configured for this builder
-
getPortName
- Specified by:
getPortName
in interfaceSiteToSiteClientConfig
- Returns:
- the name of the port that the client is to communicate with
-
getPortIdentifier
- Specified by:
getPortIdentifier
in interfaceSiteToSiteClientConfig
- Returns:
- the identifier of the port that the client is to communicate with
-
getPenalizationPeriod
- Specified by:
getPenalizationPeriod
in interfaceSiteToSiteClientConfig
- Parameters:
timeUnit
- unit over which to report the time- Returns:
- the amount of time that a particular node will be ignored after a communications error with that node occurs
-
getPeerPersistenceFile
- Specified by:
getPeerPersistenceFile
in interfaceSiteToSiteClientConfig
- Returns:
- the file that is to be used for persisting the nodes of a remote cluster, if any
-
getStateManager
- Specified by:
getStateManager
in interfaceSiteToSiteClientConfig
- Returns:
- the StateManager to be used for persisting the nodes of a remote
-
getPeerPersistence
- Specified by:
getPeerPersistence
in interfaceSiteToSiteClientConfig
- Returns:
- a PeerPersistence implementation based on configured persistent target
-
getEventReporter
- Specified by:
getEventReporter
in interfaceSiteToSiteClientConfig
- Returns:
- the EventReporter that is to be used by clients to report events
-
getPreferredBatchDuration
Description copied from interface:SiteToSiteClientConfig
When pulling data from a NiFi instance, the sender chooses how large a Transaction is. However, the client has the ability to request a particular batch size/duration.- Specified by:
getPreferredBatchDuration
in interfaceSiteToSiteClientConfig
- Parameters:
timeUnit
- unit of time over which to report the duration- Returns:
- the maximum amount of time that we will request a NiFi instance to send data to us in a Transaction
-
getPreferredBatchSize
public long getPreferredBatchSize()Description copied from interface:SiteToSiteClientConfig
When pulling data from a NiFi instance, the sender chooses how large a Transaction is. However, the client has the ability to request a particular batch size/duration.- Specified by:
getPreferredBatchSize
in interfaceSiteToSiteClientConfig
- Returns:
- returns the maximum number of bytes that we will request a NiFi instance to send data to us in a Transaction
-
getPreferredBatchCount
public int getPreferredBatchCount()Description copied from interface:SiteToSiteClientConfig
When pulling data from a NiFi instance, the sender chooses how large a Transaction is. However, the client has the ability to request a particular batch size/duration.- Specified by:
getPreferredBatchCount
in interfaceSiteToSiteClientConfig
- Returns:
- the maximum number of
DataPacket
s that we will request a NiFi instance to send data to us in a Transaction
-
getKeystoreFilename
- Specified by:
getKeystoreFilename
in interfaceSiteToSiteClientConfig
- Returns:
- the filename to use for the keystore, or
null
if none is configured
-
getKeystorePassword
- Specified by:
getKeystorePassword
in interfaceSiteToSiteClientConfig
- Returns:
- the password to use for the keystore, or
null
if none is configured
-
getKeystoreType
- Specified by:
getKeystoreType
in interfaceSiteToSiteClientConfig
- Returns:
- the Type of the keystore, or
null
if none is configured
-
getTruststoreFilename
- Specified by:
getTruststoreFilename
in interfaceSiteToSiteClientConfig
- Returns:
- the filename to use for the truststore, or
null
if none is configured
-
getTruststorePassword
- Specified by:
getTruststorePassword
in interfaceSiteToSiteClientConfig
- Returns:
- the password to use for the truststore, or
null
if none is configured
-
getTruststoreType
- Specified by:
getTruststoreType
in interfaceSiteToSiteClientConfig
- Returns:
- the type of the truststore, or
null
if none is configured
-
getTransportProtocol
- Specified by:
getTransportProtocol
in interfaceSiteToSiteClientConfig
- Returns:
- a transport protocol to use
-
getHttpProxy
Description copied from interface:SiteToSiteClientConfig
Return Proxy for HTTP Transport Protocol.- Specified by:
getHttpProxy
in interfaceSiteToSiteClientConfig
- Returns:
- proxy or null if not specified
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceSiteToSiteClientConfig
- Returns:
- the InetAddress to bind to for the local address when creating a socket, or
null
to bind to theanyLocal
address.
-