public class GridGainConfiguration extends Object implements org.apache.ignite.plugin.PluginConfiguration
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_DR_THREAD_CNT
Default size of DR (Data Replication) thread pool.
|
| 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.
|
byte |
getDataCenterId()
Gets data center ID of the grid.
|
DrReceiverConfiguration |
getDrReceiverConfiguration()
Set data center receiver hub configuration.
|
DrSenderConfiguration |
getDrSenderConfiguration()
Get data center sender hub configuration.
|
int |
getDrThreadPoolSize()
Size of thread pool that is in charge of processing DR (Data Replication) messages.
|
InteropConfiguration |
getInteropConfiguration()
Gets interop configuration.
|
String |
getLicenseUrl()
Gets custom license file URL to be used instead of default license file location.
|
PortableConfiguration |
getPortableConfiguration() |
org.apache.ignite.plugin.security.SecurityCredentialsProvider |
getSecurityCredentialsProvider()
Gets security credentials.
|
boolean |
isRollingUpdatesEnabled()
Gets rolling updates enabled flag.
|
void |
setAuthenticator(Authenticator auth)
Sets fully configured instance of
Authenticator. |
void |
setDataCenterId(byte dataCenterId)
Sets data center ID of the grid.
|
void |
setDrReceiverConfiguration(DrReceiverConfiguration drRcvHubCfg)
Set data center sender hub configuration.
|
void |
setDrSenderConfiguration(DrSenderConfiguration drSndHubCfg)
Set data center receiver hub configuration.
|
void |
setDrThreadPoolSize(int poolSize)
Set thread pool size that will be used to send and receive DR (Data Replication) messages.
|
void |
setInteropConfiguration(InteropConfiguration interopCfg)
Sets interop configuration.
|
void |
setLicenseUrl(String licUrl)
Sets license URL different from the default location of the license file.
|
void |
setPortableConfiguration(PortableConfiguration portableCfg) |
void |
setRollingUpdatesEnabled(boolean rollingUpdatesEnabled)
Sets rolling updates enabled flag.
|
void |
setSecurityCredentialsProvider(org.apache.ignite.plugin.security.SecurityCredentialsProvider securityCred)
Sets security credentials.
|
String |
toString() |
public static final int DFLT_DR_THREAD_CNT
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 void 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.@Nullable public InteropConfiguration getInteropConfiguration()
public void setInteropConfiguration(@Nullable
InteropConfiguration interopCfg)
interopCfg - Interop configuration.public DrReceiverConfiguration getDrReceiverConfiguration()
public void setDrReceiverConfiguration(DrReceiverConfiguration drRcvHubCfg)
drRcvHubCfg - Data center sender hub configuration.public DrSenderConfiguration getDrSenderConfiguration()
public void setDrSenderConfiguration(DrSenderConfiguration drSndHubCfg)
drSndHubCfg - Data center receiver hub configuration.public PortableConfiguration getPortableConfiguration()
public void setPortableConfiguration(PortableConfiguration portableCfg)
portableCfg - Portable configuration.public String getLicenseUrl()
null to use the default
$IGNITE_HOME-related location.public void setLicenseUrl(String licUrl)
licUrl - License URl to set.public Authenticator getAuthenticator()
null to use default implementation.public void setAuthenticator(Authenticator auth)
Authenticator.auth - Fully configured instance of Authenticator or
null if no provided.getAuthenticator()public org.apache.ignite.plugin.security.SecurityCredentialsProvider getSecurityCredentialsProvider()
public void setSecurityCredentialsProvider(org.apache.ignite.plugin.security.SecurityCredentialsProvider securityCred)
securityCred - Security credentials.public boolean isRollingUpdatesEnabled()
public void setRollingUpdatesEnabled(boolean rollingUpdatesEnabled)
rollingUpdatesEnabled - Whether rolling updates are enabled.public int getDrThreadPoolSize()
If not provided, executor service will have size DFLT_DR_THREAD_CNT.
public void setDrThreadPoolSize(int poolSize)
poolSize - Set thread pool size.
GridGain Fabric : ver. 7.8.12 Release Date : October 2 2017