public class Config extends Object
HazelcastInstance
. A Config
can be created programmatically, but can also be configured using XML, see XmlConfigBuilder
.
Config instances can be shared between threads, but should not be modified after they are used to
create HazelcastInstances.public Config()
public Config(String instanceName)
public ClassLoader getClassLoader()
If null, then thread context class-loader will be used instead.
public Config setClassLoader(ClassLoader classLoader)
classLoader
- class-loader to be used during de-serializationpublic ConfigPatternMatcher getConfigPatternMatcher()
public void setConfigPatternMatcher(ConfigPatternMatcher configPatternMatcher)
public String getProperty(String name)
name
- property namepublic Config setProperty(String name, String value)
name
- property namevalue
- value of the propertyConfig
for chainingpublic String getProperty(HazelcastProperty property)
HazelcastProperty
already set or from system properties if not exists.property
- HazelcastProperty
to getpublic Config setProperty(HazelcastProperty property, String value)
HazelcastProperty
.property
- HazelcastProperty
to setvalue
- value of the propertyConfig
for chainingHazelcastProperty} for properties that is used to configure client
public MemberAttributeConfig getMemberAttributeConfig()
public void setMemberAttributeConfig(MemberAttributeConfig memberAttributeConfig)
public Properties getProperties()
public Config setProperties(Properties properties)
public String getInstanceName()
public GroupConfig getGroupConfig()
public Config setGroupConfig(GroupConfig groupConfig)
public NetworkConfig getNetworkConfig()
public Config setNetworkConfig(NetworkConfig networkConfig)
public Config setMapConfigs(Map<String,MapConfig> mapConfigs)
mapConfigs
- the mapConfigs to setpublic CacheSimpleConfig findCacheConfig(String name)
public CacheSimpleConfig getCacheConfig(String name)
public Config addCacheConfig(CacheSimpleConfig cacheConfig)
public Map<String,CacheSimpleConfig> getCacheConfigs()
public Config setCacheConfigs(Map<String,CacheSimpleConfig> cacheConfigs)
cacheConfigs
- the cacheConfigs to setpublic QueueConfig findQueueConfig(String name)
public QueueConfig getQueueConfig(String name)
public Config addQueueConfig(QueueConfig queueConfig)
public Map<String,QueueConfig> getQueueConfigs()
public Config setQueueConfigs(Map<String,QueueConfig> queueConfigs)
public ListConfig findListConfig(String name)
public ListConfig getListConfig(String name)
public Config addListConfig(ListConfig listConfig)
public Map<String,ListConfig> getListConfigs()
public Config setListConfigs(Map<String,ListConfig> listConfigs)
public MultiMapConfig findMultiMapConfig(String name)
public MultiMapConfig getMultiMapConfig(String name)
public Config addMultiMapConfig(MultiMapConfig multiMapConfig)
public Map<String,MultiMapConfig> getMultiMapConfigs()
public Config setMultiMapConfigs(Map<String,MultiMapConfig> multiMapConfigs)
public ReplicatedMapConfig findReplicatedMapConfig(String name)
public ReplicatedMapConfig getReplicatedMapConfig(String name)
public Config addReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig)
public Map<String,ReplicatedMapConfig> getReplicatedMapConfigs()
public Config setReplicatedMapConfigs(Map<String,ReplicatedMapConfig> replicatedMapConfigs)
public RingbufferConfig findRingbufferConfig(String name)
public RingbufferConfig getRingbufferConfig(String name)
public Config addRingBufferConfig(RingbufferConfig ringbufferConfig)
public Map<String,RingbufferConfig> getRingbufferConfigs()
public TopicConfig findTopicConfig(String name)
public TopicConfig getTopicConfig(String name)
public Config addTopicConfig(TopicConfig topicConfig)
public ReliableTopicConfig findReliableTopicConfig(String name)
public ReliableTopicConfig getReliableTopicConfig(String name)
public Map<String,ReliableTopicConfig> getReliableTopicConfigs()
public Config addReliableTopicConfig(ReliableTopicConfig topicConfig)
public Map<String,TopicConfig> getTopicConfigs()
public Config setTopicConfigs(Map<String,TopicConfig> mapTopicConfigs)
mapTopicConfigs
- the topicConfigs to setpublic ExecutorConfig findExecutorConfig(String name)
public ExecutorConfig getExecutorConfig(String name)
name
- name of the executor configpublic Config addExecutorConfig(ExecutorConfig executorConfig)
executorConfig
- executor config to addpublic Map<String,ExecutorConfig> getExecutorConfigs()
public Config setExecutorConfigs(Map<String,ExecutorConfig> executorConfigs)
public SemaphoreConfig findSemaphoreConfig(String name)
public SemaphoreConfig getSemaphoreConfig(String name)
name
- name of the semaphore configpublic Config addSemaphoreConfig(SemaphoreConfig semaphoreConfig)
semaphoreConfig
- semaphore config to addpublic Collection<SemaphoreConfig> getSemaphoreConfigs()
public Config setSemaphoreConfigs(Map<String,SemaphoreConfig> semaphoreConfigs)
public WanReplicationConfig getWanReplicationConfig(String name)
public Config addWanReplicationConfig(WanReplicationConfig wanReplicationConfig)
public Map<String,WanReplicationConfig> getWanReplicationConfigs()
public Config setWanReplicationConfigs(Map<String,WanReplicationConfig> wanReplicationConfigs)
public JobTrackerConfig findJobTrackerConfig(String name)
public JobTrackerConfig getJobTrackerConfig(String name)
public Config addJobTrackerConfig(JobTrackerConfig jobTrackerConfig)
public Map<String,JobTrackerConfig> getJobTrackerConfigs()
public Config setJobTrackerConfigs(Map<String,JobTrackerConfig> jobTrackerConfigs)
public Map<String,QuorumConfig> getQuorumConfigs()
public QuorumConfig getQuorumConfig(String name)
public QuorumConfig findQuorumConfig(String name)
public Config setQuorumConfigs(Map<String,QuorumConfig> quorumConfigs)
public Config addQuorumConfig(QuorumConfig quorumConfig)
public ManagementCenterConfig getManagementCenterConfig()
public Config setManagementCenterConfig(ManagementCenterConfig managementCenterConfig)
public ServicesConfig getServicesConfig()
public Config setServicesConfig(ServicesConfig servicesConfig)
public SecurityConfig getSecurityConfig()
public Config setSecurityConfig(SecurityConfig securityConfig)
public Config addListenerConfig(ListenerConfig listenerConfig)
public List<ListenerConfig> getListenerConfigs()
public Config setListenerConfigs(List<ListenerConfig> listenerConfigs)
public SerializationConfig getSerializationConfig()
public Config setSerializationConfig(SerializationConfig serializationConfig)
public PartitionGroupConfig getPartitionGroupConfig()
public Config setPartitionGroupConfig(PartitionGroupConfig partitionGroupConfig)
public HotRestartPersistenceConfig getHotRestartPersistenceConfig()
public Config setHotRestartPersistenceConfig(HotRestartPersistenceConfig hrConfig)
hrConfig
- hot restart configurationpublic ManagedContext getManagedContext()
public Config setManagedContext(ManagedContext managedContext)
public ConcurrentMap<String,Object> getUserContext()
public Config setUserContext(ConcurrentMap<String,Object> userContext)
public NativeMemoryConfig getNativeMemoryConfig()
public Config setNativeMemoryConfig(NativeMemoryConfig nativeMemoryConfig)
public URL getConfigurationUrl()
public Config setConfigurationUrl(URL configurationUrl)
configurationUrl
- the configurationUrl to setpublic File getConfigurationFile()
public Config setConfigurationFile(File configurationFile)
configurationFile
- the configurationFile to setpublic String getLicenseKey()
public boolean isLiteMember()
public Config setLiteMember(boolean liteMember)
liteMember
- sets if the node will be a lite member or not. Lite members do not own any partition.public boolean isCompatible(Config config)
config
- RuntimeException
- if map, queue, topic configs are incompatibleCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.