public class DrSenderConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DFLT_HEALTH_CHECK_FREQ
Default health check frequency.
|
static int |
DFLT_MAX_ERRORS
Default maximum processing errors.
|
static int |
DFLT_MAX_FAILED_CONNECT_ATTEMPTS
Default maximum failed connect attempts.
|
static int |
DFLT_MAX_QUEUE_SIZE
Default maximum amount of enqueued requests per remote receiver hub.
|
static long |
DFLT_READ_TIMEOUT
Default read timeout.
|
static long |
DFLT_RECONNECT_ON_FAILURE_TIMEOUT
Reconnect on error timeout.
|
static long |
DFLT_SYS_REQ_TIMEOUT
Default ping timeout.
|
static boolean |
DFLT_USE_IGNITE_SSL_CTX_FACTORY
Default value of whether to use Ignite SSL context factory.
|
| Constructor and Description |
|---|
DrSenderConfiguration()
Default constructor.
|
DrSenderConfiguration(DrSenderConfiguration cfg)
Copying constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCacheNames()
Gets cache names this sender hub works with.
|
DrSenderConnectionConfiguration[] |
getConnectionConfiguration()
Get remote data center connection configurations.
|
long |
getHealthCheckFrequency()
Gets health check frequency.
|
int |
getMaxErrors()
Gets maximum amount of sequential errors in receiver hub responses.
|
int |
getMaxFailedConnectAttempts()
Gets maximum failed connect attempts.
|
int |
getMaxQueueSize()
Gets maximum wait queue size.
|
long |
getReadTimeout()
Gets read timeout.
|
long |
getReconnectOnFailureTimeout()
Gets reconnect-on-failure timeout.
|
int |
getSocketReceiveBufferSize()
Gets socket receive buffer size in bytes.
|
int |
getSocketSendBufferSize()
Gets socket send buffer size in bytes.
|
javax.cache.configuration.Factory<SSLContext> |
getSslContextFactory()
Gets SSL context factory.
|
DrSenderStore |
getStore()
Gets store.
|
long |
getSystemRequestTimeout()
Gets system request timeout.
|
boolean |
isUseIgniteSslContextFactory()
Gets whether to use Ignite SSL context factory configured through
IgniteConfiguration.getSslContextFactory() if getSslContextFactory() is not set. |
void |
setCacheNames(String... cacheNames)
Set cache names this sender hub works with.
|
void |
setConnectionConfiguration(DrSenderConnectionConfiguration... connCfg)
Set remote data center connection configurations.
|
void |
setHealthCheckFrequency(long healthCheckFreq)
Sets health check frequency.
|
void |
setMaxErrors(int maxErrors)
Sets maximum amount of sequential errors in receiver hub responses.
|
void |
setMaxFailedConnectAttempts(int maxFailedConnectAttempts)
Set maximum failed connect attempts.
|
void |
setMaxQueueSize(int maxQueueSize)
Sets maximum wait queue size.
|
void |
setReadTimeout(long readTimeout)
Sets read timeout.
|
void |
setReconnectOnFailureTimeout(long reconnectOnFailureTimeout)
Sets reconnect-on-failure timeout.
|
void |
setSocketReceiveBufferSize(int sockRcvBufSize)
Sets socjet receive buffer size in bytes.
|
void |
setSocketSendBufferSize(int sockSndBufSize)
Sets socket send buffer size in bytes.
|
void |
setSslContextFactory(javax.cache.configuration.Factory<SSLContext> sslCtxFactory)
Sets SSL context factory.
|
void |
setStore(DrSenderStore store)
Sets store.
|
void |
setSystemRequestTimeout(long sysReqTimeout)
Sets system request timeout.
|
void |
setUseIgniteSslContextFactory(boolean useIgniteSslCtxFactory)
Sets whether to use Ignite SSL context factory.
|
String |
toString() |
public static final int DFLT_MAX_FAILED_CONNECT_ATTEMPTS
public static final int DFLT_MAX_ERRORS
public static final long DFLT_HEALTH_CHECK_FREQ
public static final long DFLT_SYS_REQ_TIMEOUT
public static final long DFLT_READ_TIMEOUT
public static final int DFLT_MAX_QUEUE_SIZE
public static final long DFLT_RECONNECT_ON_FAILURE_TIMEOUT
public static final boolean DFLT_USE_IGNITE_SSL_CTX_FACTORY
public DrSenderConfiguration()
public DrSenderConfiguration(DrSenderConfiguration cfg)
cfg - Another sender hub configuration.public DrSenderConnectionConfiguration[] getConnectionConfiguration()
public void setConnectionConfiguration(DrSenderConnectionConfiguration... connCfg)
getConnectionConfiguration() for more
information.connCfg - Remote data center connection configurations.public int getMaxFailedConnectAttempts()
getReconnectOnFailureTimeout() property.
Defaults to DFLT_MAX_FAILED_CONNECT_ATTEMPTS.
public void setMaxFailedConnectAttempts(int maxFailedConnectAttempts)
getMaxFailedConnectAttempts() for more information.maxFailedConnectAttempts - Maximum failed connect attempts.public int getMaxErrors()
getReconnectOnFailureTimeout() property.
Defaults to DFLT_MAX_ERRORS.
public void setMaxErrors(int maxErrors)
getMaxErrors() for more
information.maxErrors - Maximum amount of sequential errors in receiver hub responsespublic long getHealthCheckFrequency()
getReadTimeout() property.
Defaults to DFLT_HEALTH_CHECK_FREQ.
public void setHealthCheckFrequency(long healthCheckFreq)
getHealthCheckFrequency() for more information.healthCheckFreq - Health check frequency.public long getSystemRequestTimeout()
getReadTimeout().
In case any of these two requests was sent to receiver hub and there is no response for too long, it indicates a problem with either network connectivity or receiver hub itself. Thus, when the given timeout is exceeded, connection to receiver hub is closed.
Defaults to DFLT_SYS_REQ_TIMEOUT.
public void setSystemRequestTimeout(long sysReqTimeout)
getSystemRequestTimeout() for more information.sysReqTimeout - System request timeout.public long getReadTimeout()
Defaults to DFLT_READ_TIMEOUT.
public void setReadTimeout(long readTimeout)
getReadTimeout() for more information.readTimeout - Read timeout.public int getMaxQueueSize()
Defaults to DFLT_MAX_QUEUE_SIZE.
public void setMaxQueueSize(int maxQueueSize)
getMaxQueueSize() for more information.maxQueueSize - Maximum wait queue size.public long getReconnectOnFailureTimeout()
Defaults to DFLT_RECONNECT_ON_FAILURE_TIMEOUT.
public void setReconnectOnFailureTimeout(long reconnectOnFailureTimeout)
getReconnectOnFailureTimeout() for more information.reconnectOnFailureTimeout - Reconnect-on-failure timeout.public String[] getCacheNames()
public void setCacheNames(@Nullable
String... cacheNames)
getCacheNames() for more information.cacheNames - Cache names this sender hub works with.public DrSenderStore getStore()
If set to null then DrSenderInMemoryStore will be used as a default.
public void setStore(DrSenderStore store)
getStore() for more information.store - Store.@Nullable public javax.cache.configuration.Factory<SSLContext> getSslContextFactory()
isUseIgniteSslContextFactory() flag will be evaluated. If set to true
and IgniteConfiguration.getSslContextFactory() exists, then Ignite SSL context factory will be used
to establish secure connection.public void setSslContextFactory(@Nullable
javax.cache.configuration.Factory<SSLContext> sslCtxFactory)
getSslContextFactory() for more information.sslCtxFactory - SSL context factory.public boolean isUseIgniteSslContextFactory()
IgniteConfiguration.getSslContextFactory() if getSslContextFactory() is not set.True if Ignite SSL context factory can be used.public void setUseIgniteSslContextFactory(boolean useIgniteSslCtxFactory)
isUseIgniteSslContextFactory() for more information.useIgniteSslCtxFactory - Whether to use Ignite SSL context factorypublic int getSocketSendBufferSize()
Defaults to 0, what means that OS default value will be used.
public void setSocketSendBufferSize(int sockSndBufSize)
getSocketSendBufferSize() for more information.sockSndBufSize - Socket send buffer size in bytes.public int getSocketReceiveBufferSize()
Defaults to 0, what means that OS default value will be used.
public void setSocketReceiveBufferSize(int sockRcvBufSize)
getSocketReceiveBufferSize() for more information.sockRcvBufSize - Socket receive buffer size in bytes.
GridGain Fabric : ver. 7.8.12 Release Date : October 2 2017