public class DrSenderConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DFLT_FST_BUFFER_SIZE
Default full state transfer buffer size.
|
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()
Deprecated.
use
getSenderGroups() instead. |
DrSenderConnectionConfiguration[] |
getConnectionConfiguration()
Get remote data center connection configurations.
|
long |
getFullStateTransferBufferSize()
Gets global DR full state transfer buffer size.
|
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.
|
String[] |
getSenderGroups()
Get group this sender hub will participate in.
|
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. |
DrSenderConfiguration |
setCacheNames(String... cacheNames)
Deprecated.
use
setSenderGroups(java.lang.String...) instead. |
DrSenderConfiguration |
setConnectionConfiguration(DrSenderConnectionConfiguration... connCfg)
Set remote data center connection configurations.
|
DrSenderConfiguration |
setFullStateTransferBufferSize(long fstBufferSize)
Sets global DR full state transfer buffer size.
|
DrSenderConfiguration |
setHealthCheckFrequency(long healthCheckFreq)
Sets health check frequency.
|
DrSenderConfiguration |
setMaxErrors(int maxErrors)
Sets maximum amount of sequential errors in receiver hub responses.
|
DrSenderConfiguration |
setMaxFailedConnectAttempts(int maxFailedConnectAttempts)
Set maximum failed connect attempts.
|
DrSenderConfiguration |
setMaxQueueSize(int maxQueueSize)
Sets maximum wait queue size.
|
DrSenderConfiguration |
setReadTimeout(long readTimeout)
Sets read timeout.
|
DrSenderConfiguration |
setReconnectOnFailureTimeout(long reconnectOnFailureTimeout)
Sets reconnect-on-failure timeout.
|
DrSenderConfiguration |
setSenderGroups(String... senderGroups)
Set groups this sender hub will participate in.
|
DrSenderConfiguration |
setSocketReceiveBufferSize(int sockRcvBufSize)
Sets socjet receive buffer size in bytes.
|
DrSenderConfiguration |
setSocketSendBufferSize(int sockSndBufSize)
Sets socket send buffer size in bytes.
|
DrSenderConfiguration |
setSslContextFactory(javax.cache.configuration.Factory<SSLContext> sslCtxFactory)
Sets SSL context factory.
|
DrSenderConfiguration |
setStore(DrSenderStore store)
Sets store.
|
DrSenderConfiguration |
setSystemRequestTimeout(long sysReqTimeout)
Sets system request timeout.
|
DrSenderConfiguration |
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 static final long DFLT_FST_BUFFER_SIZE
public DrSenderConfiguration()
public DrSenderConfiguration(DrSenderConfiguration cfg)
cfg
- Another sender hub configuration.public DrSenderConnectionConfiguration[] getConnectionConfiguration()
public DrSenderConfiguration setConnectionConfiguration(DrSenderConnectionConfiguration... connCfg)
getConnectionConfiguration()
for more
information.connCfg
- Remote data center connection configurations.this
for chaining.public int getMaxFailedConnectAttempts()
getReconnectOnFailureTimeout()
property.
Defaults to DFLT_MAX_FAILED_CONNECT_ATTEMPTS
.
public DrSenderConfiguration setMaxFailedConnectAttempts(int maxFailedConnectAttempts)
getMaxFailedConnectAttempts()
for more information.maxFailedConnectAttempts
- Maximum failed connect attempts.this
for chaining.public int getMaxErrors()
getReconnectOnFailureTimeout()
property.
Defaults to DFLT_MAX_ERRORS
.
public DrSenderConfiguration setMaxErrors(int maxErrors)
getMaxErrors()
for more
information.maxErrors
- Maximum amount of sequential errors in receiver hub responsesthis
for chaining.public long getHealthCheckFrequency()
getReadTimeout()
property.
Defaults to DFLT_HEALTH_CHECK_FREQ
.
public DrSenderConfiguration setHealthCheckFrequency(long healthCheckFreq)
getHealthCheckFrequency()
for more information.healthCheckFreq
- Health check frequency.this
for chaining.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 DrSenderConfiguration setSystemRequestTimeout(long sysReqTimeout)
getSystemRequestTimeout()
for more information.sysReqTimeout
- System request timeout.this
for chaining.public long getReadTimeout()
Defaults to DFLT_READ_TIMEOUT
.
public DrSenderConfiguration setReadTimeout(long readTimeout)
getReadTimeout()
for more information.readTimeout
- Read timeout.this
for chaining.public int getMaxQueueSize()
Defaults to DFLT_MAX_QUEUE_SIZE
.
public DrSenderConfiguration setMaxQueueSize(int maxQueueSize)
getMaxQueueSize()
for more information.maxQueueSize
- Maximum wait queue size.this
for chaining.public long getReconnectOnFailureTimeout()
Defaults to DFLT_RECONNECT_ON_FAILURE_TIMEOUT
.
public DrSenderConfiguration setReconnectOnFailureTimeout(long reconnectOnFailureTimeout)
getReconnectOnFailureTimeout()
for more information.reconnectOnFailureTimeout
- Reconnect-on-failure timeout.this
for chaining.@Deprecated public String[] getCacheNames()
getSenderGroups()
instead.GridGainConfiguration.isDrUseCacheNames()
is set to False
.
Disabled by default.@Deprecated public DrSenderConfiguration setCacheNames(String... cacheNames)
setSenderGroups(java.lang.String...)
instead.getCacheNames()
for more information.
Note: Cache names are ignored if GridGainConfiguration.isDrUseCacheNames()
is set to False
.
Disabled by default.cacheNames
- Cache names this sender hub works with.this
for chaining.public String[] getSenderGroups()
GridGainConfiguration.isDrUseCacheNames()
is set to True
than DR will ignore sender groups
and fallback to old behaviour.public DrSenderConfiguration setSenderGroups(String... senderGroups)
getSenderGroups()
()} for more information.
Note: If GridGainConfiguration.isDrUseCacheNames()
is set to True
than DR will ignore sender groups
and fallback to old behaviour.
If not set then default DrUtils.DFLT_SENDER_GROUPS
will be used.senderGroups
- Group names this sender hub participate in.this
for chaining.public DrSenderStore getStore()
If set to null
then DrSenderFsStore
will be used as a default.
public DrSenderConfiguration setStore(DrSenderStore store)
getStore()
for more information.store
- Store.this
for chaining.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 DrSenderConfiguration setSslContextFactory(javax.cache.configuration.Factory<SSLContext> sslCtxFactory)
getSslContextFactory()
for more information.sslCtxFactory
- SSL context factory. Passing null
will clear previously set SSL context factory.this
for chaining.public boolean isUseIgniteSslContextFactory()
IgniteConfiguration.getSslContextFactory()
if getSslContextFactory()
is not set.True
if Ignite SSL context factory can be used.public DrSenderConfiguration setUseIgniteSslContextFactory(boolean useIgniteSslCtxFactory)
isUseIgniteSslContextFactory()
for more information.useIgniteSslCtxFactory
- Whether to use Ignite SSL context factorythis
for chaining.public int getSocketSendBufferSize()
Defaults to 0
, what means that OS default value will be used.
public DrSenderConfiguration setSocketSendBufferSize(int sockSndBufSize)
getSocketSendBufferSize()
for more information.sockSndBufSize
- Socket send buffer size in bytes.this
for chaining.public int getSocketReceiveBufferSize()
Defaults to 0
, what means that OS default value will be used.
public DrSenderConfiguration setSocketReceiveBufferSize(int sockRcvBufSize)
getSocketReceiveBufferSize()
for more information.sockRcvBufSize
- Socket receive buffer size in bytes.this
for chaining.public long getFullStateTransferBufferSize()
DFLT_FST_BUFFER_SIZE
public DrSenderConfiguration setFullStateTransferBufferSize(long fstBufferSize)
fstBufferSize
- Buffer size in bytes.this
for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024