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)
If not set (or set to null
); thread context class-loader
will be used in required places.
Default value is null
.
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 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 LockConfig findLockConfig(String name)
public LockConfig getLockConfig(String name)
public Config addLockConfig(LockConfig lockConfig)
public Map<String,LockConfig> getLockConfigs()
public Config setLockConfigs(Map<String,LockConfig> lockConfigs)
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 Config setRingbufferConfigs(Map<String,RingbufferConfig> ringbufferConfigs)
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 Config setReliableTopicConfigs(Map<String,ReliableTopicConfig> reliableTopicConfigs)
public Map<String,TopicConfig> getTopicConfigs()
public Config setTopicConfigs(Map<String,TopicConfig> mapTopicConfigs)
mapTopicConfigs
- the topicConfigs to setpublic ExecutorConfig findExecutorConfig(String name)
public DurableExecutorConfig findDurableExecutorConfig(String name)
public ScheduledExecutorConfig findScheduledExecutorConfig(String name)
public CardinalityEstimatorConfig findCardinalityEstimatorConfig(String name)
public ExecutorConfig getExecutorConfig(String name)
name
- name of the executor configpublic DurableExecutorConfig getDurableExecutorConfig(String name)
name
- name of the durable executor configpublic ScheduledExecutorConfig getScheduledExecutorConfig(String name)
name
- name of the scheduled executor configpublic CardinalityEstimatorConfig getCardinalityEstimatorConfig(String name)
name
- name of the cardinality estimator configpublic Config addExecutorConfig(ExecutorConfig executorConfig)
executorConfig
- executor config to addpublic Config addDurableExecutorConfig(DurableExecutorConfig durableExecutorConfig)
durableExecutorConfig
- executor config to addpublic Config addScheduledExecutorConfig(ScheduledExecutorConfig scheduledExecutorConfig)
scheduledExecutorConfig
- executor config to addpublic Config addCardinalityEstimatorConfig(CardinalityEstimatorConfig cardinalityEstimatorConfig)
cardinalityEstimatorConfig
- estimator config to addpublic Map<String,ExecutorConfig> getExecutorConfigs()
public Config setExecutorConfigs(Map<String,ExecutorConfig> executorConfigs)
public Map<String,DurableExecutorConfig> getDurableExecutorConfigs()
public Config setDurableExecutorConfigs(Map<String,DurableExecutorConfig> durableExecutorConfigs)
public Map<String,ScheduledExecutorConfig> getScheduledExecutorConfigs()
public Config setScheduledExecutorConfigs(Map<String,ScheduledExecutorConfig> scheduledExecutorConfigs)
public Map<String,CardinalityEstimatorConfig> getCardinalityEstimatorConfigs()
public Config setCardinalityEstimatorConfigs(Map<String,CardinalityEstimatorConfig> cardinalityEstimatorConfigs)
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 Map<String,SemaphoreConfig> getSemaphoreConfigsAsMap()
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 EventJournalConfig findMapEventJournalConfig(String name)
public EventJournalConfig findCacheEventJournalConfig(String name)
public EventJournalConfig getMapEventJournalConfig(String name)
public EventJournalConfig getCacheEventJournalConfig(String name)
public Config addEventJournalConfig(EventJournalConfig eventJournalConfig)
public Map<String,EventJournalConfig> getMapEventJournalConfigs()
public Map<String,EventJournalConfig> getCacheEventJournalConfigs()
public Config setMapEventJournalConfigs(Map<String,EventJournalConfig> eventJournalConfigs)
public Config setCacheEventJournalConfigs(Map<String,EventJournalConfig> eventJournalConfigs)
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)
URL
to the XML configuration, which has been parsed to create this Config
instance.
Is set by the XmlConfigBuilder
, when the XML configuration was retrieved from a URL.
configurationUrl
- the configurationUrl to setpublic File getConfigurationFile()
public Config setConfigurationFile(File configurationFile)
File
to the XML configuration, which has been parsed to create this Config
instance.
Is set by the XmlConfigBuilder
, when the XML configuration was retrieved from a file.
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 partitionpublic UserCodeDeploymentConfig getUserCodeDeploymentConfig()
public Config setUserCodeDeploymentConfig(UserCodeDeploymentConfig userCodeDeploymentConfig)
userCodeDeploymentConfig
- Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.