public class DynamicConfigurationAwareConfig extends Config
DEFAULT_CLUSTER_NAME
Constructor and Description |
---|
DynamicConfigurationAwareConfig(Config staticConfig,
HazelcastProperties properties) |
Modifier and Type | Method and Description |
---|---|
Config |
addCacheConfig(CacheSimpleConfig cacheConfig)
Adds the cache configuration.
|
Config |
addCardinalityEstimatorConfig(CardinalityEstimatorConfig cardinalityEstimatorConfig)
Adds the cardinality estimator configuration.
|
Config |
addDurableExecutorConfig(DurableExecutorConfig durableExecutorConfig)
Adds the durable executor configuration.
|
Config |
addExecutorConfig(ExecutorConfig executorConfig)
Adds the executor configuration.
|
Config |
addFlakeIdGeneratorConfig(FlakeIdGeneratorConfig config)
Adds a flake ID generator configuration.
|
Config |
addListConfig(ListConfig listConfig)
Adds the list configuration.
|
Config |
addListenerConfig(ListenerConfig listenerConfig)
Adds a configuration for an
EventListener . |
Config |
addMapConfig(MapConfig mapConfig)
Adds the map configuration.
|
Config |
addMultiMapConfig(MultiMapConfig multiMapConfig)
Adds the multimap configuration.
|
Config |
addPNCounterConfig(PNCounterConfig pnCounterConfig)
Adds the PN counter configuration.
|
Config |
addQueueConfig(QueueConfig queueConfig)
Adds the queue configuration.
|
Config |
addReliableTopicConfig(ReliableTopicConfig reliableTopicConfig)
Adds the reliable topic configuration.
|
Config |
addReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig)
Adds the replicated map configuration.
|
Config |
addRingBufferConfig(RingbufferConfig ringbufferConfig)
Adds the ringbuffer configuration.
|
Config |
addScheduledExecutorConfig(ScheduledExecutorConfig scheduledExecutorConfig)
Adds the scheduled executor configuration.
|
Config |
addSetConfig(SetConfig setConfig)
Adds the set configuration.
|
Config |
addSplitBrainProtectionConfig(SplitBrainProtectionConfig splitBrainProtectionConfig)
Adds the split-brain protection configuration.
|
Config |
addTopicConfig(TopicConfig topicConfig)
Adds the topic configuration.
|
Config |
addWanReplicationConfig(WanReplicationConfig wanReplicationConfig)
Adds the WAN replication config under the name defined by
WanReplicationConfig.getName() . |
CacheSimpleConfig |
findCacheConfig(String name)
Returns a read-only
CacheSimpleConfig configuration for the given name. |
CacheSimpleConfig |
findCacheConfigOrNull(String name)
Returns the cache config with the given name or
null if there is none. |
CardinalityEstimatorConfig |
findCardinalityEstimatorConfig(String name)
Returns a read-only
CardinalityEstimator
configuration for the given name. |
DurableExecutorConfig |
findDurableExecutorConfig(String name)
Returns a read-only durable executor configuration for the given name.
|
ExecutorConfig |
findExecutorConfig(String name)
Returns a read-only executor configuration for the given name.
|
FlakeIdGeneratorConfig |
findFlakeIdGeneratorConfig(String name)
Returns a
FlakeIdGeneratorConfig configuration for the given flake ID generator name. |
ListConfig |
findListConfig(String name)
Returns a read-only
IList configuration for
the given name. |
MapConfig |
findMapConfig(String name)
Returns a read-only
IMap configuration for
the given name. |
MultiMapConfig |
findMultiMapConfig(String name)
Returns a read-only
MultiMap configuration for
the given name. |
PNCounterConfig |
findPNCounterConfig(String name)
Returns a read-only
PNCounterConfig
configuration for the given name. |
QueueConfig |
findQueueConfig(String name)
Returns a read-only
IQueue configuration for
the given name. |
ReliableTopicConfig |
findReliableTopicConfig(String name)
Returns a read-only reliable topic configuration for the given name.
|
ReplicatedMapConfig |
findReplicatedMapConfig(String name)
Returns a read-only
ReplicatedMap configuration for
the given name. |
RingbufferConfig |
findRingbufferConfig(String name)
Returns a read-only
Ringbuffer
configuration for the given name. |
ScheduledExecutorConfig |
findScheduledExecutorConfig(String name)
Returns a read-only scheduled executor configuration for the given name.
|
SetConfig |
findSetConfig(String name)
Returns a read-only
ISet configuration for
the given name. |
SplitBrainProtectionConfig |
findSplitBrainProtectionConfig(String name)
Returns a read-only split-brain protection configuration for the given
name.
|
TopicConfig |
findTopicConfig(String name)
Returns a read-only
ITopic
configuration for the given name. |
AdvancedNetworkConfig |
getAdvancedNetworkConfig() |
CacheSimpleConfig |
getCacheConfig(String name)
Returns the CacheSimpleConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,CacheSimpleConfig> |
getCacheConfigs()
Returns the map of cache configurations, mapped by config name.
|
CardinalityEstimatorConfig |
getCardinalityEstimatorConfig(String name)
Returns the CardinalityEstimatorConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,CardinalityEstimatorConfig> |
getCardinalityEstimatorConfigs()
Returns the map of cardinality estimator configurations, mapped by config
name.
|
ClassLoader |
getClassLoader()
Returns the class-loader that will be used in serialization.
|
String |
getClusterName()
Returns the cluster name uniquely identifying the hazelcast cluster.
|
ConfigPatternMatcher |
getConfigPatternMatcher()
Returns the pattern matcher which is used to match item names to
configuration objects.
|
File |
getConfigurationFile()
|
URL |
getConfigurationUrl()
|
CPSubsystemConfig |
getCPSubsystemConfig()
Get current configuration for the CP subsystem
|
CRDTReplicationConfig |
getCRDTReplicationConfig() |
DurableExecutorConfig |
getDurableExecutorConfig(String name)
Returns the DurableExecutorConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,DurableExecutorConfig> |
getDurableExecutorConfigs()
Returns the map of durable executor configurations, mapped by config
name.
|
ExecutorConfig |
getExecutorConfig(String name)
Returns the ExecutorConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ExecutorConfig> |
getExecutorConfigs()
Returns the map of executor configurations, mapped by config name.
|
FlakeIdGeneratorConfig |
getFlakeIdGeneratorConfig(String name)
Returns the
FlakeIdGeneratorConfig for the given name, creating
one if necessary and adding it to the collection of known configurations. |
Map<String,FlakeIdGeneratorConfig> |
getFlakeIdGeneratorConfigs()
Returns the map of
FlakeIdGenerator configurations,
mapped by config name. |
HotRestartPersistenceConfig |
getHotRestartPersistenceConfig()
Returns the Hot Restart configuration for this hazelcast instance
|
String |
getInstanceName()
Returns the instance name uniquely identifying the hazelcast instance
created by this configuration.
|
String |
getLicenseKey()
Returns the license key for this hazelcast instance.
|
ListConfig |
getListConfig(String name)
Returns the ListConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ListConfig> |
getListConfigs()
Returns the map of
IList configurations,
mapped by config name. |
List<ListenerConfig> |
getListenerConfigs()
Returns the list of
EventListener configurations. |
ManagedContext |
getManagedContext()
Returns the external managed context.
|
ManagementCenterConfig |
getManagementCenterConfig()
Returns the management center configuration for this hazelcast instance.
|
MapConfig |
getMapConfig(String name)
Returns the MapConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
MapConfig |
getMapConfigOrNull(String name)
Returns the map config with the given name or
null if there is none. |
Map<String,MapConfig> |
getMapConfigs()
Returns the map of
IMap configurations,
mapped by config name. |
MemberAttributeConfig |
getMemberAttributeConfig()
Returns the member attribute configuration.
|
MetricsConfig |
getMetricsConfig()
Returns the metrics collection config.
|
MultiMapConfig |
getMultiMapConfig(String name)
Returns the MultiMapConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,MultiMapConfig> |
getMultiMapConfigs()
Returns the map of
MultiMap configurations,
mapped by config name. |
NativeMemoryConfig |
getNativeMemoryConfig()
Returns the native memory configuration for this hazelcast instance.
|
NetworkConfig |
getNetworkConfig()
Returns the network configuration for this hazelcast instance.
|
PartitionGroupConfig |
getPartitionGroupConfig()
Returns the partition group configuration for this hazelcast instance.
|
PNCounterConfig |
getPNCounterConfig(String name)
Returns the
PNCounterConfig for the given name, creating one
if necessary and adding it to the collection of known configurations. |
Map<String,PNCounterConfig> |
getPNCounterConfigs()
Returns the map of PN counter configurations, mapped by config
name.
|
Properties |
getProperties()
Returns the properties set on this config instance.
|
String |
getProperty(String name)
Returns the value for a named property.
|
QueueConfig |
getQueueConfig(String name)
Returns the QueueConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,QueueConfig> |
getQueueConfigs()
Returns the map of
IQueue configurations,
mapped by config name. |
ReliableTopicConfig |
getReliableTopicConfig(String name)
Returns the ReliableTopicConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ReliableTopicConfig> |
getReliableTopicConfigs()
Returns the map of reliable topic configurations, mapped by config name.
|
ReplicatedMapConfig |
getReplicatedMapConfig(String name)
Returns the ReplicatedMapConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ReplicatedMapConfig> |
getReplicatedMapConfigs()
Returns the map of
ReplicatedMap
configurations, mapped by config name. |
RingbufferConfig |
getRingbufferConfig(String name)
Returns the RingbufferConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,RingbufferConfig> |
getRingbufferConfigs()
Returns the map of
Ringbuffer
configurations, mapped by config name. |
ScheduledExecutorConfig |
getScheduledExecutorConfig(String name)
Returns the ScheduledExecutorConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,ScheduledExecutorConfig> |
getScheduledExecutorConfigs()
Returns the map of scheduled executor configurations, mapped by config
name.
|
SecurityConfig |
getSecurityConfig()
Returns the security configuration for this hazelcast instance.
|
SerializationConfig |
getSerializationConfig()
Returns the serialization configuration for this hazelcast instance.
|
ServicesConfig |
getServicesConfig()
Returns the configuration for the user services managed by this
hazelcast instance.
|
SetConfig |
getSetConfig(String name)
Returns the SetConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,SetConfig> |
getSetConfigs()
Returns the map of
ISet configurations,
mapped by config name. |
SplitBrainProtectionConfig |
getSplitBrainProtectionConfig(String name)
Returns the
SplitBrainProtectionConfig for the given name, creating one
if necessary and adding it to the collection of known configurations. |
Map<String,SplitBrainProtectionConfig> |
getSplitBrainProtectionConfigs()
Returns the map of split brain protection configurations, mapped by
config name.
|
TopicConfig |
getTopicConfig(String name)
Returns the TopicConfig for the given name, creating one
if necessary and adding it to the collection of known configurations.
|
Map<String,TopicConfig> |
getTopicConfigs()
Returns the map of reliable topic configurations, mapped by config name.
|
UserCodeDeploymentConfig |
getUserCodeDeploymentConfig()
Get current configuration of User Code Deployment.
|
ConcurrentMap<String,Object> |
getUserContext()
Returns the user supplied context.
|
WanReplicationConfig |
getWanReplicationConfig(String name)
Returns the WAN replication configuration with the given
name . |
Map<String,WanReplicationConfig> |
getWanReplicationConfigs()
Returns the map of WAN replication configurations, mapped by config
name.
|
boolean |
isLiteMember()
Returns
true if this member is a lite member. |
void |
onSecurityServiceUpdated(SecurityService securityService) |
Config |
setAdvancedNetworkConfig(AdvancedNetworkConfig advancedNetworkConfig) |
Config |
setCacheConfigs(Map<String,CacheSimpleConfig> cacheConfigs)
Sets the map of cache configurations, mapped by config name.
|
Config |
setCardinalityEstimatorConfigs(Map<String,CardinalityEstimatorConfig> cardinalityEstimatorConfigs)
Sets the map of cardinality estimator configurations, mapped by config name.
|
Config |
setClassLoader(ClassLoader classLoader)
Sets the class-loader to be used during de-serialization
and as context class-loader of Hazelcast internal threads.
|
Config |
setClusterName(String clusterName)
Sets the cluster name uniquely identifying the hazelcast cluster.
|
Config |
setConfigPatternMatcher(ConfigPatternMatcher configPatternMatcher)
Sets the pattern matcher which is used to match item names to
configuration objects.
|
Config |
setConfigurationFile(File configurationFile)
Sets the
File from which this configuration has been retrieved
and created. |
void |
setConfigurationService(ConfigurationService configurationService) |
Config |
setConfigurationUrl(URL configurationUrl)
Sets the
URL from which this configuration has been retrieved
and created. |
Config |
setCPSubsystemConfig(CPSubsystemConfig cpSubsystemConfig)
Set CP subsystem configuration
|
Config |
setCRDTReplicationConfig(CRDTReplicationConfig crdtReplicationConfig)
Sets the replication configuration for
CRDT
implementations. |
Config |
setDurableExecutorConfigs(Map<String,DurableExecutorConfig> durableExecutorConfigs)
Sets the map of durable executor configurations, mapped by config name.
|
Config |
setExecutorConfigs(Map<String,ExecutorConfig> executorConfigs)
Sets the map of executor configurations, mapped by config name.
|
Config |
setFlakeIdGeneratorConfigs(Map<String,FlakeIdGeneratorConfig> map)
Sets the map of
FlakeIdGenerator configurations,
mapped by config name. |
Config |
setHotRestartPersistenceConfig(HotRestartPersistenceConfig hrConfig)
Sets the Hot Restart configuration.
|
Config |
setInstanceName(String instanceName)
Sets the instance name uniquely identifying the hazelcast instance
created by this configuration.
|
Config |
setLicenseKey(String licenseKey)
Sets the license key for this hazelcast instance.
|
Config |
setListConfigs(Map<String,ListConfig> listConfigs)
Sets the map of
IList configurations,
mapped by config name. |
Config |
setListenerConfigs(List<ListenerConfig> listenerConfigs)
Sets the list of
EventListener configurations. |
Config |
setLiteMember(boolean liteMember)
Sets the flag to indicate if this member is a lite member.
|
Config |
setManagedContext(ManagedContext managedContext)
Sets the external managed context.
|
Config |
setManagementCenterConfig(ManagementCenterConfig managementCenterConfig)
Sets the management center configuration for this hazelcast instance.
|
Config |
setMapConfigs(Map<String,MapConfig> mapConfigs)
Sets the map of
IMap configurations,
mapped by config name. |
Config |
setMemberAttributeConfig(MemberAttributeConfig memberAttributeConfig)
Sets the member attribute configuration.
|
Config |
setMetricsConfig(MetricsConfig metricsConfig)
Sets the metrics collection config.
|
Config |
setMultiMapConfigs(Map<String,MultiMapConfig> multiMapConfigs)
Sets the map of
MultiMap configurations,
mapped by config name. |
Config |
setNativeMemoryConfig(NativeMemoryConfig nativeMemoryConfig)
Sets the native memory configuration for this hazelcast instance.
|
Config |
setNetworkConfig(NetworkConfig networkConfig)
Sets the network configuration for this hazelcast instance.
|
Config |
setPartitionGroupConfig(PartitionGroupConfig partitionGroupConfig)
Sets the partition group configuration for this hazelcast instance.
|
Config |
setPNCounterConfigs(Map<String,PNCounterConfig> pnCounterConfigs)
Sets the map of PN counter configurations, mapped by config name.
|
Config |
setProperties(Properties properties)
Sets the properties for this config instance.
|
Config |
setProperty(String name,
String value)
Sets the value of a named property.
|
Config |
setQueueConfigs(Map<String,QueueConfig> queueConfigs)
Sets the map of
IQueue configurations,
mapped by config name. |
Config |
setReliableTopicConfigs(Map<String,ReliableTopicConfig> reliableTopicConfigs)
Sets the map of reliable topic configurations, mapped by config name.
|
Config |
setReplicatedMapConfigs(Map<String,ReplicatedMapConfig> replicatedMapConfigs)
Sets the map of
ReplicatedMap configurations,
mapped by config name. |
Config |
setRingbufferConfigs(Map<String,RingbufferConfig> ringbufferConfigs)
Sets the map of
Ringbuffer configurations,
mapped by config name. |
Config |
setScheduledExecutorConfigs(Map<String,ScheduledExecutorConfig> scheduledExecutorConfigs)
Sets the map of scheduled executor configurations, mapped by config name.
|
Config |
setSecurityConfig(SecurityConfig securityConfig)
Sets the security configuration for this hazelcast instance.
|
Config |
setSerializationConfig(SerializationConfig serializationConfig)
Sets the serialization configuration for this hazelcast instance.
|
Config |
setServicesConfig(ServicesConfig servicesConfig)
Sets the configuration for the user services managed by this hazelcast
instance.
|
Config |
setSetConfigs(Map<String,SetConfig> setConfigs)
Sets the map of
ISet configurations,
mapped by config name. |
Config |
setSplitBrainProtectionConfigs(Map<String,SplitBrainProtectionConfig> splitBrainProtectionConfigs)
Sets the map of split-brain protection configurations, mapped by config
name.
|
Config |
setTopicConfigs(Map<String,TopicConfig> mapTopicConfigs)
Sets the map of
ITopic configurations,
mapped by config name. |
Config |
setUserCodeDeploymentConfig(UserCodeDeploymentConfig userCodeDeploymentConfig)
Set User Code Deployment configuration
|
Config |
setUserContext(ConcurrentMap<String,Object> userContext)
Sets the user supplied context.
|
Config |
setWanReplicationConfigs(Map<String,WanReplicationConfig> wanReplicationConfigs)
Sets the map of WAN replication configurations, mapped by config name.
|
String |
toString() |
public DynamicConfigurationAwareConfig(Config staticConfig, HazelcastProperties properties)
public ClassLoader getClassLoader()
Config
If null
, then thread context class-loader will be used instead.
getClassLoader
in class Config
public Config setClassLoader(ClassLoader classLoader)
Config
If not set (or set to null
); thread context class-loader
will be used in required places.
Default value is null
.
setClassLoader
in class Config
classLoader
- class-loader to be used during de-serializationpublic ConfigPatternMatcher getConfigPatternMatcher()
Config
MatchingPointConfigPatternMatcher
is used.getConfigPatternMatcher
in class Config
public Config setConfigPatternMatcher(ConfigPatternMatcher configPatternMatcher)
Config
MatchingPointConfigPatternMatcher
is used.setConfigPatternMatcher
in class Config
configPatternMatcher
- the pattern matcherpublic String getProperty(String name)
Config
getProperty
in class Config
name
- property nameConfig.setProperty(String, String)
,
Hazelcast System Propertiespublic Config setProperty(String name, String value)
Config
setProperty
in class Config
name
- property namevalue
- value of the propertypublic MemberAttributeConfig getMemberAttributeConfig()
Config
Config.setProperties(Properties)
), member
attributes are exchanged with other members, e.g. on membership events.getMemberAttributeConfig
in class Config
public Config setMemberAttributeConfig(MemberAttributeConfig memberAttributeConfig)
Config
Config.setProperties(Properties)
), member
attributes are exchanged with other members, e.g. on membership events.setMemberAttributeConfig
in class Config
memberAttributeConfig
- the member attribute configurationpublic Properties getProperties()
Config
getProperties
in class Config
public Config setProperties(Properties properties)
Config
setProperties
in class Config
properties
- the config propertiespublic String getInstanceName()
Config
getInstanceName
in class Config
public Config setInstanceName(String instanceName)
Config
setInstanceName
in class Config
instanceName
- the hazelcast instance namepublic String getClusterName()
Config
getClusterName
in class Config
public Config setClusterName(String clusterName)
Config
setClusterName
in class Config
clusterName
- the new cluster namepublic NetworkConfig getNetworkConfig()
Config
getNetworkConfig
in class Config
public Config setNetworkConfig(NetworkConfig networkConfig)
Config
setNetworkConfig
in class Config
networkConfig
- the network configurationpublic AdvancedNetworkConfig getAdvancedNetworkConfig()
getAdvancedNetworkConfig
in class Config
public Config setAdvancedNetworkConfig(AdvancedNetworkConfig advancedNetworkConfig)
setAdvancedNetworkConfig
in class Config
public MapConfig findMapConfig(String name)
Config
IMap
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
For non-default configurations and on-heap maps, it will also
initialise the Near Cache eviction if not previously set.
findMapConfig
in class Config
name
- name of the map configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public MapConfig getMapConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addMapConfig(MapConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getMapConfig
in class Config
name
- name of the map configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public MapConfig getMapConfigOrNull(String name)
Config
null
if there is none.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.getMapConfigOrNull
in class Config
name
- name of the map confignull
if none was foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addMapConfig(MapConfig mapConfig)
Config
addMapConfig
in class Config
mapConfig
- the map configurationpublic Map<String,MapConfig> getMapConfigs()
Config
IMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.getMapConfigs
in class Config
public Config setMapConfigs(Map<String,MapConfig> mapConfigs)
Config
IMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setMapConfigs
in class Config
mapConfigs
- the IMap configuration map to setpublic CacheSimpleConfig findCacheConfig(String name)
Config
CacheSimpleConfig
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findCacheConfig
in class Config
name
- name of the cardinality estimator configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public CacheSimpleConfig findCacheConfigOrNull(String name)
Config
null
if there is none.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.findCacheConfigOrNull
in class Config
name
- name of the cache confignull
if none was foundStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public CacheSimpleConfig getCacheConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addCacheConfig(CacheSimpleConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getCacheConfig
in class Config
name
- name of the cache configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addCacheConfig(CacheSimpleConfig cacheConfig)
Config
addCacheConfig
in class Config
cacheConfig
- the cache configurationpublic Map<String,CacheSimpleConfig> getCacheConfigs()
Config
getCacheConfigs
in class Config
public Config setCacheConfigs(Map<String,CacheSimpleConfig> cacheConfigs)
Config
setCacheConfigs
in class Config
cacheConfigs
- the cacheConfigs to setpublic QueueConfig findQueueConfig(String name)
Config
IQueue
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findQueueConfig
in class Config
name
- name of the queue configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public QueueConfig getQueueConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addQueueConfig(QueueConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getQueueConfig
in class Config
name
- name of the queue configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addQueueConfig(QueueConfig queueConfig)
Config
addQueueConfig
in class Config
queueConfig
- the queue configurationpublic Map<String,QueueConfig> getQueueConfigs()
Config
IQueue
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.getQueueConfigs
in class Config
public Config setQueueConfigs(Map<String,QueueConfig> queueConfigs)
Config
IQueue
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setQueueConfigs
in class Config
queueConfigs
- the queue configuration map to setpublic ListConfig findListConfig(String name)
Config
IList
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findListConfig
in class Config
name
- name of the list configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ListConfig getListConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addListConfig(ListConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getListConfig
in class Config
name
- name of the list configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addListConfig(ListConfig listConfig)
Config
addListConfig
in class Config
listConfig
- the list configurationpublic Map<String,ListConfig> getListConfigs()
Config
IList
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.getListConfigs
in class Config
public Config setListConfigs(Map<String,ListConfig> listConfigs)
Config
IList
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setListConfigs
in class Config
listConfigs
- the list configuration map to setpublic SetConfig findSetConfig(String name)
Config
ISet
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findSetConfig
in class Config
name
- name of the set configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public SetConfig getSetConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addSetConfig(SetConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getSetConfig
in class Config
name
- name of the set configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addSetConfig(SetConfig setConfig)
Config
addSetConfig
in class Config
setConfig
- the set configurationpublic Map<String,SetConfig> getSetConfigs()
Config
ISet
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.getSetConfigs
in class Config
public Config setSetConfigs(Map<String,SetConfig> setConfigs)
Config
ISet
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setSetConfigs
in class Config
setConfigs
- the set configuration map to setpublic MultiMapConfig findMultiMapConfig(String name)
Config
MultiMap
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findMultiMapConfig
in class Config
name
- name of the multimap configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public MultiMapConfig getMultiMapConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addMultiMapConfig(MultiMapConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getMultiMapConfig
in class Config
name
- name of the multimap configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addMultiMapConfig(MultiMapConfig multiMapConfig)
Config
addMultiMapConfig
in class Config
multiMapConfig
- the multimap configurationpublic Map<String,MultiMapConfig> getMultiMapConfigs()
Config
MultiMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.getMultiMapConfigs
in class Config
public Config setMultiMapConfigs(Map<String,MultiMapConfig> multiMapConfigs)
Config
MultiMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setMultiMapConfigs
in class Config
multiMapConfigs
- the multimap configuration map to setpublic ReplicatedMapConfig findReplicatedMapConfig(String name)
Config
ReplicatedMap
configuration for
the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findReplicatedMapConfig
in class Config
name
- name of the replicated map configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ReplicatedMapConfig getReplicatedMapConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
Config.addReplicatedMapConfig(ReplicatedMapConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getReplicatedMapConfig
in class Config
name
- name of the replicated map configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig)
Config
addReplicatedMapConfig
in class Config
replicatedMapConfig
- the replicated map configurationpublic Map<String,ReplicatedMapConfig> getReplicatedMapConfigs()
Config
ReplicatedMap
configurations, mapped by config name. The config name may be a pattern
with which the configuration was initially obtained.getReplicatedMapConfigs
in class Config
public Config setReplicatedMapConfigs(Map<String,ReplicatedMapConfig> replicatedMapConfigs)
Config
ReplicatedMap
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setReplicatedMapConfigs
in class Config
replicatedMapConfigs
- the replicated map configuration map to setpublic RingbufferConfig findRingbufferConfig(String name)
Config
Ringbuffer
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findRingbufferConfig
in class Config
name
- name of the ringbuffer configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public RingbufferConfig getRingbufferConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
Config.addRingBufferConfig(RingbufferConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getRingbufferConfig
in class Config
name
- name of the ringbuffer configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addRingBufferConfig(RingbufferConfig ringbufferConfig)
Config
addRingBufferConfig
in class Config
ringbufferConfig
- the ringbuffer configurationpublic Map<String,RingbufferConfig> getRingbufferConfigs()
Config
Ringbuffer
configurations, mapped by config name. The config name may be a pattern
with which the configuration was initially obtained.getRingbufferConfigs
in class Config
public Config setRingbufferConfigs(Map<String,RingbufferConfig> ringbufferConfigs)
Config
Ringbuffer
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setRingbufferConfigs
in class Config
ringbufferConfigs
- the ringbuffer configuration map to setpublic TopicConfig findTopicConfig(String name)
Config
ITopic
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findTopicConfig
in class Config
name
- name of the topic configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public TopicConfig getTopicConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addTopicConfig(TopicConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getTopicConfig
in class Config
name
- name of the topic configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addTopicConfig(TopicConfig topicConfig)
Config
addTopicConfig
in class Config
topicConfig
- the topic configurationpublic Map<String,TopicConfig> getTopicConfigs()
Config
getTopicConfigs
in class Config
public Config setTopicConfigs(Map<String,TopicConfig> mapTopicConfigs)
Config
ITopic
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setTopicConfigs
in class Config
mapTopicConfigs
- the topic configuration map to setpublic ReliableTopicConfig findReliableTopicConfig(String name)
Config
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findReliableTopicConfig
in class Config
name
- name of the reliable topic configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ReliableTopicConfig getReliableTopicConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
Config.addReliableTopicConfig(ReliableTopicConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getReliableTopicConfig
in class Config
name
- name of the reliable topic configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Map<String,ReliableTopicConfig> getReliableTopicConfigs()
Config
getReliableTopicConfigs
in class Config
public Config addReliableTopicConfig(ReliableTopicConfig reliableTopicConfig)
Config
addReliableTopicConfig
in class Config
reliableTopicConfig
- the reliable topic configurationpublic Config setReliableTopicConfigs(Map<String,ReliableTopicConfig> reliableTopicConfigs)
Config
setReliableTopicConfigs
in class Config
reliableTopicConfigs
- the reliable topic configuration map to setpublic ExecutorConfig findExecutorConfig(String name)
Config
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findExecutorConfig
in class Config
name
- name of the executor configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ExecutorConfig getExecutorConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addExecutorConfig(ExecutorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getExecutorConfig
in class Config
name
- name of the executor configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addExecutorConfig(ExecutorConfig executorConfig)
Config
addExecutorConfig
in class Config
executorConfig
- executor config to addpublic Map<String,ExecutorConfig> getExecutorConfigs()
Config
getExecutorConfigs
in class Config
public Config setExecutorConfigs(Map<String,ExecutorConfig> executorConfigs)
Config
setExecutorConfigs
in class Config
executorConfigs
- the executor configuration map to setpublic DurableExecutorConfig findDurableExecutorConfig(String name)
Config
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findDurableExecutorConfig
in class Config
name
- name of the durable executor configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public DurableExecutorConfig getDurableExecutorConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
Config.addDurableExecutorConfig(DurableExecutorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getDurableExecutorConfig
in class Config
name
- name of the durable executor configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addDurableExecutorConfig(DurableExecutorConfig durableExecutorConfig)
Config
addDurableExecutorConfig
in class Config
durableExecutorConfig
- durable executor config to addpublic Map<String,DurableExecutorConfig> getDurableExecutorConfigs()
Config
getDurableExecutorConfigs
in class Config
public Config setDurableExecutorConfigs(Map<String,DurableExecutorConfig> durableExecutorConfigs)
Config
setDurableExecutorConfigs
in class Config
durableExecutorConfigs
- the durable executor configuration map to setpublic ScheduledExecutorConfig findScheduledExecutorConfig(String name)
Config
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findScheduledExecutorConfig
in class Config
name
- name of the scheduled executor configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public ScheduledExecutorConfig getScheduledExecutorConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
Config.addScheduledExecutorConfig(ScheduledExecutorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getScheduledExecutorConfig
in class Config
name
- name of the scheduled executor configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Map<String,ScheduledExecutorConfig> getScheduledExecutorConfigs()
Config
getScheduledExecutorConfigs
in class Config
public Config addScheduledExecutorConfig(ScheduledExecutorConfig scheduledExecutorConfig)
Config
addScheduledExecutorConfig
in class Config
scheduledExecutorConfig
- scheduled executor config to addpublic Config setScheduledExecutorConfigs(Map<String,ScheduledExecutorConfig> scheduledExecutorConfigs)
Config
setScheduledExecutorConfigs
in class Config
scheduledExecutorConfigs
- the scheduled executor configuration
map to setpublic CardinalityEstimatorConfig findCardinalityEstimatorConfig(String name)
Config
CardinalityEstimator
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findCardinalityEstimatorConfig
in class Config
name
- name of the cardinality estimator configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public CardinalityEstimatorConfig getCardinalityEstimatorConfig(String name)
Config
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
Config.addCardinalityEstimatorConfig(CardinalityEstimatorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getCardinalityEstimatorConfig
in class Config
name
- name of the cardinality estimator configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addCardinalityEstimatorConfig(CardinalityEstimatorConfig cardinalityEstimatorConfig)
Config
addCardinalityEstimatorConfig
in class Config
cardinalityEstimatorConfig
- cardinality estimator config to addpublic Map<String,CardinalityEstimatorConfig> getCardinalityEstimatorConfigs()
Config
getCardinalityEstimatorConfigs
in class Config
public Config setCardinalityEstimatorConfigs(Map<String,CardinalityEstimatorConfig> cardinalityEstimatorConfigs)
Config
setCardinalityEstimatorConfigs
in class Config
cardinalityEstimatorConfigs
- the cardinality estimator
configuration map to setpublic PNCounterConfig findPNCounterConfig(String name)
Config
PNCounterConfig
configuration for the given name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findPNCounterConfig
in class Config
name
- name of the PN counter configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public PNCounterConfig getPNCounterConfig(String name)
Config
PNCounterConfig
for the given name, creating one
if necessary and adding it to the collection of known configurations.
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
Config.addPNCounterConfig(PNCounterConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getPNCounterConfig
in class Config
name
- name of the PN counter configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addPNCounterConfig(PNCounterConfig pnCounterConfig)
Config
addPNCounterConfig
in class Config
pnCounterConfig
- PN counter config to addpublic Map<String,PNCounterConfig> getPNCounterConfigs()
Config
getPNCounterConfigs
in class Config
public Config setPNCounterConfigs(Map<String,PNCounterConfig> pnCounterConfigs)
Config
setPNCounterConfigs
in class Config
pnCounterConfigs
- the PN counter configuration map to setpublic Map<String,FlakeIdGeneratorConfig> getFlakeIdGeneratorConfigs()
Config
FlakeIdGenerator
configurations,
mapped by config name. The config name may be a pattern with which the
configuration was initially obtained.getFlakeIdGeneratorConfigs
in class Config
public FlakeIdGeneratorConfig findFlakeIdGeneratorConfig(String name)
Config
FlakeIdGeneratorConfig
configuration for the given flake ID generator name.
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name "default"
.
findFlakeIdGeneratorConfig
in class Config
name
- name of the flake ID generator configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public FlakeIdGeneratorConfig getFlakeIdGeneratorConfig(String name)
Config
FlakeIdGeneratorConfig
for the given name, creating
one if necessary and adding it to the collection of known configurations.
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking Config.addFlakeIdGeneratorConfig(FlakeIdGeneratorConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getFlakeIdGeneratorConfig
in class Config
name
- name of the flake ID generator configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public Config addFlakeIdGeneratorConfig(FlakeIdGeneratorConfig config)
Config
addFlakeIdGeneratorConfig
in class Config
config
- the flake ID generator configurationpublic Config setFlakeIdGeneratorConfigs(Map<String,FlakeIdGeneratorConfig> map)
Config
FlakeIdGenerator
configurations,
mapped by config name. The config name may be a pattern with which the
configuration will be obtained in the future.setFlakeIdGeneratorConfigs
in class Config
map
- the FlakeIdGenerator configuration map to setpublic WanReplicationConfig getWanReplicationConfig(String name)
Config
name
.getWanReplicationConfig
in class Config
name
- the WAN replication config namepublic Config addWanReplicationConfig(WanReplicationConfig wanReplicationConfig)
Config
WanReplicationConfig.getName()
.addWanReplicationConfig
in class Config
wanReplicationConfig
- the WAN replication configpublic Map<String,WanReplicationConfig> getWanReplicationConfigs()
Config
getWanReplicationConfigs
in class Config
public Config setWanReplicationConfigs(Map<String,WanReplicationConfig> wanReplicationConfigs)
Config
setWanReplicationConfigs
in class Config
wanReplicationConfigs
- the WAN replication configuration map to setpublic Map<String,SplitBrainProtectionConfig> getSplitBrainProtectionConfigs()
Config
getSplitBrainProtectionConfigs
in class Config
public SplitBrainProtectionConfig getSplitBrainProtectionConfig(String name)
Config
SplitBrainProtectionConfig
for the given name, creating one
if necessary and adding it to the collection of known configurations.
The configuration is found by matching the configuration name
pattern to the provided name
without the partition qualifier
(the part of the name after '@'
).
If no configuration matches, it will create one by cloning the
"default"
configuration and add it to the configuration
collection.
This method is intended to easily and fluently create and add
configurations more specific than the default configuration without
explicitly adding it by invoking
Config.addSplitBrainProtectionConfig(SplitBrainProtectionConfig)
.
Because it adds new configurations if they are not already present, this method is intended to be used before this config is used to create a hazelcast instance. Afterwards, newly added configurations may be ignored.
getSplitBrainProtectionConfig
in class Config
name
- name of the split-brain protection configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
public SplitBrainProtectionConfig findSplitBrainProtectionConfig(String name)
Config
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given name
.
If there is no config found by the name, it will return the configuration
with the name default
.
findSplitBrainProtectionConfig
in class Config
name
- name of the split-brain protection configStringPartitioningStrategy.getBaseName(java.lang.String)
,
Config.setConfigPatternMatcher(ConfigPatternMatcher)
,
Config.getConfigPatternMatcher()
,
EvictionConfig.setSize(int)
public Config setSplitBrainProtectionConfigs(Map<String,SplitBrainProtectionConfig> splitBrainProtectionConfigs)
Config
setSplitBrainProtectionConfigs
in class Config
splitBrainProtectionConfigs
- the split-brain protection configuration map to setpublic Config addSplitBrainProtectionConfig(SplitBrainProtectionConfig splitBrainProtectionConfig)
Config
SplitBrainProtectionConfig.getName()
.addSplitBrainProtectionConfig
in class Config
splitBrainProtectionConfig
- split-brain protection config to addpublic ManagementCenterConfig getManagementCenterConfig()
Config
getManagementCenterConfig
in class Config
public Config setManagementCenterConfig(ManagementCenterConfig managementCenterConfig)
Config
setManagementCenterConfig
in class Config
managementCenterConfig
- the management center configurationpublic ServicesConfig getServicesConfig()
Config
getServicesConfig
in class Config
public Config setServicesConfig(ServicesConfig servicesConfig)
Config
setServicesConfig
in class Config
servicesConfig
- the user services configurationpublic SecurityConfig getSecurityConfig()
Config
getSecurityConfig
in class Config
public Config setSecurityConfig(SecurityConfig securityConfig)
Config
setSecurityConfig
in class Config
securityConfig
- the security configurationpublic Config addListenerConfig(ListenerConfig listenerConfig)
Config
EventListener
. This includes
listeners for events related to this instance/member or the cluster,
such as partition, migration, cluster version listeners, etc. but not
listeners on specific distributed data structures.addListenerConfig
in class Config
listenerConfig
- the listener configurationpublic List<ListenerConfig> getListenerConfigs()
Config
EventListener
configurations. This includes
listeners for events related to this instance/member or the cluster,
such as partition, migration, cluster version listeners, etc. but not
listeners on specific distributed data structures.getListenerConfigs
in class Config
public Config setListenerConfigs(List<ListenerConfig> listenerConfigs)
Config
EventListener
configurations. This includes
listeners for events related to this instance/member or the cluster,
such as partition, migration, cluster version listeners, etc. but not
listeners on specific distributed data structures.setListenerConfigs
in class Config
listenerConfigs
- the listener configurationspublic SerializationConfig getSerializationConfig()
Config
getSerializationConfig
in class Config
public Config setSerializationConfig(SerializationConfig serializationConfig)
Config
setSerializationConfig
in class Config
serializationConfig
- the serialization configurationpublic PartitionGroupConfig getPartitionGroupConfig()
Config
getPartitionGroupConfig
in class Config
public Config setPartitionGroupConfig(PartitionGroupConfig partitionGroupConfig)
Config
setPartitionGroupConfig
in class Config
partitionGroupConfig
- the partition group configurationpublic HotRestartPersistenceConfig getHotRestartPersistenceConfig()
Config
getHotRestartPersistenceConfig
in class Config
public Config setHotRestartPersistenceConfig(HotRestartPersistenceConfig hrConfig)
Config
setHotRestartPersistenceConfig
in class Config
hrConfig
- Hot Restart configurationpublic CRDTReplicationConfig getCRDTReplicationConfig()
getCRDTReplicationConfig
in class Config
public Config setCRDTReplicationConfig(CRDTReplicationConfig crdtReplicationConfig)
Config
CRDT
implementations.setCRDTReplicationConfig
in class Config
crdtReplicationConfig
- the replication configurationpublic ManagedContext getManagedContext()
Config
getManagedContext
in class Config
public Config setManagedContext(ManagedContext managedContext)
Config
setManagedContext
in class Config
managedContext
- the managed contextpublic ConcurrentMap<String,Object> getUserContext()
Config
HazelcastInstance
.getUserContext
in class Config
HazelcastInstance.getUserContext()
public Config setUserContext(ConcurrentMap<String,Object> userContext)
Config
HazelcastInstance
.setUserContext
in class Config
userContext
- the user supplied contextHazelcastInstance.getUserContext()
public NativeMemoryConfig getNativeMemoryConfig()
Config
getNativeMemoryConfig
in class Config
public Config setNativeMemoryConfig(NativeMemoryConfig nativeMemoryConfig)
Config
setNativeMemoryConfig
in class Config
nativeMemoryConfig
- the native memory configurationpublic URL getConfigurationUrl()
Config
URL
to the declarative configuration, which has been parsed
to create this Config
instance.getConfigurationUrl
in class Config
null
otherwisepublic Config setConfigurationUrl(URL configurationUrl)
Config
URL
from which this configuration has been retrieved
and created.
Is set by the XmlConfigBuilder
, when the XML configuration was
retrieved from a URL.
setConfigurationUrl
in class Config
configurationUrl
- the configuration URL to setpublic File getConfigurationFile()
Config
File
to the declarative configuration, which has been
parsed to create this Config
instance.getConfigurationFile
in class Config
null
otherwisepublic Config setConfigurationFile(File configurationFile)
Config
File
from which this configuration has been retrieved
and created.
Is set by the XmlConfigBuilder
, when the XML configuration was
retrieved from a file.
setConfigurationFile
in class Config
configurationFile
- the configuration file to setpublic String getLicenseKey()
Config
getLicenseKey
in class Config
public Config setLicenseKey(String licenseKey)
Config
setLicenseKey
in class Config
licenseKey
- the license keypublic boolean isLiteMember()
Config
true
if this member is a lite member. A lite member
does not own any partitions.isLiteMember
in class Config
true
if this member is a lite memberpublic Config setLiteMember(boolean liteMember)
Config
setLiteMember
in class Config
liteMember
- if this member is a lite memberpublic UserCodeDeploymentConfig getUserCodeDeploymentConfig()
Config
getUserCodeDeploymentConfig
in class Config
public Config setUserCodeDeploymentConfig(UserCodeDeploymentConfig userCodeDeploymentConfig)
Config
setUserCodeDeploymentConfig
in class Config
userCodeDeploymentConfig
- the user code deployment configurationpublic void setConfigurationService(ConfigurationService configurationService)
public void onSecurityServiceUpdated(SecurityService securityService)
public CPSubsystemConfig getCPSubsystemConfig()
Config
getCPSubsystemConfig
in class Config
public Config setCPSubsystemConfig(CPSubsystemConfig cpSubsystemConfig)
Config
setCPSubsystemConfig
in class Config
cpSubsystemConfig
- the CP subsystem configuration@Nonnull public MetricsConfig getMetricsConfig()
Config
getMetricsConfig
in class Config
@Nonnull public Config setMetricsConfig(@Nonnull MetricsConfig metricsConfig)
Config
setMetricsConfig
in class Config
Copyright © 2019 Hazelcast, Inc.. All rights reserved.