public class GridGainConfiguration extends Object implements PluginConfiguration
Modifier and Type | Field and Description |
---|---|
static int |
DFLT_BATCH_SND_SIZE_BYTES
Default DR batch size in bytes.
|
static int |
DFLT_DR_IST_POOL_THREAD_CNT
Default size of incremental DR (Data Replication) thread pool.
|
static int |
DFLT_DR_MGMT_THREAD_CNT
Default size of DR (Data Replication) management thread pool.
|
static int |
DFLT_DR_STATE_TRANSFER_THREAD_CNT
Default size of DR (Data Replication) thread pool.
|
static int |
DFLT_DR_STREAMER_THREAD_CNT
Default size of DR (Data Streamer) thread pool.
|
static int |
DFLT_DR_THREAD_CNT
Default size of DR (Data Replication) thread pool.
|
static int |
DFLT_FST_BATCH_SND_SIZE_BYTES
Default full state transfer batch size in bytes.
|
static boolean |
DFLT_ROLLING_UPGRADE_ENABLED
By default rolling upgrade functionality is disabled.
|
Constructor and Description |
---|
GridGainConfiguration()
Default constructor.
|
GridGainConfiguration(GridGainConfiguration cfg)
Copying constructor.
|
Modifier and Type | Method and Description |
---|---|
Authenticator |
getAuthenticator()
Should return fully configured authentication implementation.
|
int |
getBatchSendSizeBytes()
Gets batch send size in bytes.
|
byte |
getDataCenterId()
Gets data center ID of the grid.
|
int |
getDrManagementThreadPoolSize()
Size of thread pool that is in charge of executing internal DR tasks.
|
DrReceiverConfiguration |
getDrReceiverConfiguration()
Set data center receiver hub configuration.
|
DrSenderConfiguration |
getDrSenderConfiguration()
Get data center sender hub configuration.
|
int |
getDrStateTransferThreadPoolSize()
Size of thread pool that is in charge of executing partition scan tasks for full-state transfer purposes.
|
int |
getDrStreamerThreadPoolSize()
Size of thread pool that is in charge of processing DR (Data Replication) Streamer messages.
|
int |
getDrThreadPoolSize()
Size of thread pool that is in charge of processing DR (Data Replication) messages.
|
int |
getIncrementalDrPoolSize()
Size of thread pool that is in charge of executing partition scan tasks for incremental replication purposes.
|
InteropConfiguration |
getInteropConfiguration()
Gets interop configuration.
|
String |
getLicenseUrl()
Gets custom license file URL to be used instead of default license file location.
|
SecurityCredentialsProvider |
getSecurityCredentialsProvider()
Gets security credentials.
|
int |
getSecurityThreadPoolSize()
Size of thread pool that is in charge of processing authorization and expiration of thin clients.
|
SnapshotConfiguration |
getSnapshotConfiguration()
Gets GridGain snapshot configuration.
|
int |
getStateTransferBatchSendSizeBytes()
Gets full state transfer batch size in bytes.
|
boolean |
isDrUseCacheNames()
Compatibility flag.
|
boolean |
isRollingUpdatesEnabled()
Gets rolling updates enabled flag.
|
GridGainConfiguration |
setAuthenticator(Authenticator auth)
Sets fully configured instance of
Authenticator . |
GridGainConfiguration |
setBatchSendSizeBytes(int batchSndSizeBytes)
Sets batch send size in bytes.
|
GridGainConfiguration |
setDataCenterId(byte dataCenterId)
Sets data center ID of the grid.
|
GridGainConfiguration |
setDrManagementThreadPoolSize(int poolSize)
Set thread pool size that will be used to executing internal DR tasks.
|
GridGainConfiguration |
setDrReceiverConfiguration(DrReceiverConfiguration drRcvHubCfg)
Set data center sender hub configuration.
|
GridGainConfiguration |
setDrSenderConfiguration(DrSenderConfiguration drSndHubCfg)
Set data center receiver hub configuration.
|
GridGainConfiguration |
setDrStateTransferThreadPoolSize(int poolSize)
Set thread pool size that will be used to executing partition scan tasks for full-state transfer purposes.
|
GridGainConfiguration |
setDrStreamerThreadPoolSize(int poolSize)
Set thread pool size that will be used to send and receive DR (Data Replication) Streamer messages.
|
GridGainConfiguration |
setDrThreadPoolSize(int poolSize)
Set thread pool size that will be used to send and receive DR (Data Replication) messages.
|
GridGainConfiguration |
setDrUseCacheNames(boolean drUseCacheNames)
Compatibility flag.
|
GridGainConfiguration |
setIncrementalDrPoolSize(int poolSize)
Set thread pool size that will be used to executing partition scan tasks for incremental replication purposes.
|
GridGainConfiguration |
setInteropConfiguration(InteropConfiguration interopCfg)
Sets interop configuration.
|
GridGainConfiguration |
setLicenseUrl(String licUrl)
Sets license URL different from the default location of the license file.
|
GridGainConfiguration |
setRollingUpdatesEnabled(boolean rollingUpdatesEnabled)
Sets rolling updates enabled flag.
|
GridGainConfiguration |
setSecurityCredentialsProvider(SecurityCredentialsProvider securityCred)
Sets security credentials.
|
GridGainConfiguration |
setSecurityThreadPoolSize(int poolSize)
Set thread pool size that will be used to handle authorization of thin clients and expiration events.
|
GridGainConfiguration |
setSnapshotConfiguration(SnapshotConfiguration snapshotCfg)
Sets snapshot configuration.
|
GridGainConfiguration |
setStateTransferBatchSendSizeBytes(int batchSndSizeBytes)
Sets full state transfer batch send size in bytes.
|
String |
toString() |
public static final int DFLT_DR_THREAD_CNT
public static final int DFLT_DR_STATE_TRANSFER_THREAD_CNT
public static final int DFLT_DR_IST_POOL_THREAD_CNT
public static final int DFLT_DR_MGMT_THREAD_CNT
public static final int DFLT_DR_STREAMER_THREAD_CNT
public static final int DFLT_FST_BATCH_SND_SIZE_BYTES
public static final int DFLT_BATCH_SND_SIZE_BYTES
public static final boolean DFLT_ROLLING_UPGRADE_ENABLED
public GridGainConfiguration()
public GridGainConfiguration(GridGainConfiguration cfg)
cfg
- Configuration to copy.public byte getDataCenterId()
It is expected that data center ID will be unique among all the topologies participating in data center replication and the same for all the nodes that belong the given topology.
0
if it is not set.public GridGainConfiguration setDataCenterId(byte dataCenterId)
It is expected that data center ID will be unique among all the topologies participating in data center replication and the same for all the nodes that belong the given topology.
dataCenterId
- Data center ID.this
for chaining.public InteropConfiguration getInteropConfiguration()
public GridGainConfiguration setInteropConfiguration(InteropConfiguration interopCfg)
interopCfg
- Interop configuration. Passing null
will clear previously set interop configuration.this
for chaining.public DrReceiverConfiguration getDrReceiverConfiguration()
public GridGainConfiguration setDrReceiverConfiguration(DrReceiverConfiguration drRcvHubCfg)
drRcvHubCfg
- Data center sender hub configuration.this
for chaining.public DrSenderConfiguration getDrSenderConfiguration()
public GridGainConfiguration setDrSenderConfiguration(DrSenderConfiguration drSndHubCfg)
drSndHubCfg
- Data center receiver hub configuration.this
for chaining.public SnapshotConfiguration getSnapshotConfiguration()
public GridGainConfiguration setSnapshotConfiguration(SnapshotConfiguration snapshotCfg)
snapshotCfg
- GridGain snapshot configuration.this
for chaining.public String getLicenseUrl()
null
to use the default
$IGNITE_HOME
-related location.public GridGainConfiguration setLicenseUrl(String licUrl)
licUrl
- License URl to set.this
for chaining.public Authenticator getAuthenticator()
null
to use default implementation.public GridGainConfiguration setAuthenticator(Authenticator auth)
Authenticator
.auth
- Fully configured instance of Authenticator
or
null
if no provided.this
for chaining.getAuthenticator()
public SecurityCredentialsProvider getSecurityCredentialsProvider()
public GridGainConfiguration setSecurityCredentialsProvider(SecurityCredentialsProvider securityCred)
securityCred
- Security credentials.this
for chaining.public boolean isRollingUpdatesEnabled()
public GridGainConfiguration setRollingUpdatesEnabled(boolean rollingUpdatesEnabled)
rollingUpdatesEnabled
- Whether rolling updates are enabled.this
for chaining.public boolean isDrUseCacheNames()
True
DR will fallback to old behavior
with using cache names instead of sender groups.False
if sender groups are allowed, False
otherwise.
Note: see also DrSenderConfiguration.setSenderGroups(String...)
.public GridGainConfiguration setDrUseCacheNames(boolean drUseCacheNames)
True
DR will fallback to old behavior
with using cache names instead of sender groups.
Note: see also DrSenderConfiguration.setSenderGroups(String...)
.drUseCacheNames
- Force DR use cache names flag.this
for chaining.public int getDrThreadPoolSize()
If not provided, executor service will have size DFLT_DR_THREAD_CNT
.
public GridGainConfiguration setDrThreadPoolSize(int poolSize)
poolSize
- Set thread pool size.this
for chaining.public int getDrStateTransferThreadPoolSize()
If not provided, executor service will have size DFLT_DR_THREAD_CNT
.
public GridGainConfiguration setDrStateTransferThreadPoolSize(int poolSize)
poolSize
- Set thread pool size.this
for chaining.public int getIncrementalDrPoolSize()
If not provided, executor service will have size DFLT_DR_IST_POOL_THREAD_CNT
.
public GridGainConfiguration setIncrementalDrPoolSize(int poolSize)
poolSize
- Set thread pool size.this
for chaining.public int getDrManagementThreadPoolSize()
If not provided, executor service will have size DFLT_DR_MGMT_THREAD_CNT
.
public GridGainConfiguration setDrManagementThreadPoolSize(int poolSize)
poolSize
- Set thread pool size.this
for chaining.public int getDrStreamerThreadPoolSize()
If not provided, executor service will have size DFLT_DR_STREAMER_THREAD_CNT
.
public GridGainConfiguration setDrStreamerThreadPoolSize(int poolSize)
poolSize
- Set thread pool size.this
for chaining.public int getStateTransferBatchSendSizeBytes()
Default is DFLT_FST_BATCH_SND_SIZE_BYTES
.
public GridGainConfiguration setStateTransferBatchSendSizeBytes(int batchSndSizeBytes)
getStateTransferBatchSendSizeBytes()
for more information.batchSndSizeBytes
- Batch send size in bytes.this
for chaining.public int getBatchSendSizeBytes()
When set to zero, batch will be sent according to CacheDrSenderConfiguration.getBatchSendSize()
setting.
Default is DFLT_BATCH_SND_SIZE_BYTES
.
public GridGainConfiguration setBatchSendSizeBytes(int batchSndSizeBytes)
getBatchSendSizeBytes()
for more information.batchSndSizeBytes
- Batch send size in bytes.this
for chaining.public int getSecurityThreadPoolSize()
If not provided, executor service will have size IgniteConfiguration.DFLT_PUBLIC_THREAD_CNT
.
public GridGainConfiguration setSecurityThreadPoolSize(int poolSize)
poolSize
- Set thread pool size.this
for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024