Package com.hazelcast.config
Class FileSystemXmlConfig
java.lang.Object
com.hazelcast.config.Config
com.hazelcast.config.FileSystemXmlConfig
public class FileSystemXmlConfig extends Config
A
Config
which includes functionality for loading itself from a
XML configuration file.-
Field Summary
Fields inherited from class com.hazelcast.config.Config
DEFAULT_CLUSTER_NAME
-
Constructor Summary
Constructors Constructor Description FileSystemXmlConfig(File configFile)
Creates a Config based on a Hazelcast xml file and uses the System.properties to resolve variables in the XML.FileSystemXmlConfig(File configFile, Properties properties)
Creates a Config based on a Hazelcast XML file.FileSystemXmlConfig(String configFilename)
Creates a Config based on a Hazelcast xml file and uses the System.properties to resolve variables in the XML.FileSystemXmlConfig(String configFilename, Properties properties)
Creates a Config based on a Hazelcast XML file. -
Method Summary
Methods inherited from class com.hazelcast.config.Config
addCacheConfig, addCardinalityEstimatorConfig, addDurableExecutorConfig, addExecutorConfig, addFlakeIdGeneratorConfig, addListConfig, addListenerConfig, addMapConfig, addMultiMapConfig, addPNCounterConfig, addQueueConfig, addReliableTopicConfig, addReplicatedMapConfig, addRingBufferConfig, addScheduledExecutorConfig, addSetConfig, addSplitBrainProtectionConfig, addTopicConfig, addWanReplicationConfig, findCacheConfig, findCacheConfigOrNull, findCardinalityEstimatorConfig, findDurableExecutorConfig, findExecutorConfig, findFlakeIdGeneratorConfig, findListConfig, findMapConfig, findMultiMapConfig, findPNCounterConfig, findQueueConfig, findReliableTopicConfig, findReplicatedMapConfig, findRingbufferConfig, findScheduledExecutorConfig, findSetConfig, findSplitBrainProtectionConfig, findTopicConfig, getAdvancedNetworkConfig, getAuditlogConfig, getCacheConfig, getCacheConfigs, getCardinalityEstimatorConfig, getCardinalityEstimatorConfigs, getClassLoader, getClusterName, getConfigPatternMatcher, getConfigurationFile, getConfigurationUrl, getCPSubsystemConfig, getCRDTReplicationConfig, getDurableExecutorConfig, getDurableExecutorConfigs, getExecutorConfig, getExecutorConfigs, getFlakeIdGeneratorConfig, getFlakeIdGeneratorConfigs, getHotRestartPersistenceConfig, getInstanceName, getInstanceTrackingConfig, getLicenseKey, getListConfig, getListConfigs, getListenerConfigs, getManagedContext, getManagementCenterConfig, getMapConfig, getMapConfigOrNull, getMapConfigs, getMemberAttributeConfig, getMetricsConfig, getMultiMapConfig, getMultiMapConfigs, getNativeMemoryConfig, getNetworkConfig, getPartitionGroupConfig, getPNCounterConfig, getPNCounterConfigs, getProperties, getProperty, getQueueConfig, getQueueConfigs, getReliableTopicConfig, getReliableTopicConfigs, getReplicatedMapConfig, getReplicatedMapConfigs, getRingbufferConfig, getRingbufferConfigs, getScheduledExecutorConfig, getScheduledExecutorConfigs, getSecurityConfig, getSerializationConfig, getServicesConfig, getSetConfig, getSetConfigs, getSplitBrainProtectionConfig, getSplitBrainProtectionConfigs, getSqlConfig, getTopicConfig, getTopicConfigs, getUserCodeDeploymentConfig, getUserContext, getWanReplicationConfig, getWanReplicationConfigs, isLiteMember, load, setAdvancedNetworkConfig, setAuditlogConfig, setCacheConfigs, setCardinalityEstimatorConfigs, setClassLoader, setClusterName, setConfigPatternMatcher, setConfigurationFile, setConfigurationUrl, setCPSubsystemConfig, setCRDTReplicationConfig, setDurableExecutorConfigs, setExecutorConfigs, setFlakeIdGeneratorConfigs, setHotRestartPersistenceConfig, setInstanceName, setInstanceTrackingConfig, setLicenseKey, setListConfigs, setListenerConfigs, setLiteMember, setManagedContext, setManagementCenterConfig, setMapConfigs, setMemberAttributeConfig, setMetricsConfig, setMultiMapConfigs, setNativeMemoryConfig, setNetworkConfig, setPartitionGroupConfig, setPNCounterConfigs, setProperties, setProperty, setQueueConfigs, setReliableTopicConfigs, setReplicatedMapConfigs, setRingbufferConfigs, setScheduledExecutorConfigs, setSecurityConfig, setSerializationConfig, setSetConfigs, setSplitBrainProtectionConfigs, setSqlConfig, setTopicConfigs, setUserCodeDeploymentConfig, setUserContext, setWanReplicationConfigs, toString
-
Constructor Details
-
FileSystemXmlConfig
Creates a Config based on a Hazelcast xml file and uses the System.properties to resolve variables in the XML.- Parameters:
configFilename
- the path of the Hazelcast xml configuration file- Throws:
NullPointerException
- if configFilename isnull
FileNotFoundException
- if the file is not foundInvalidConfigurationException
- if the XML content is invalid
-
FileSystemXmlConfig
public FileSystemXmlConfig(String configFilename, Properties properties) throws FileNotFoundExceptionCreates a Config based on a Hazelcast XML file.- Parameters:
configFilename
- the path of the Hazelcast XML configuration fileproperties
- the Properties to resolve variables in the XML- Throws:
FileNotFoundException
- if the file is not foundNullPointerException
- if configFilename isnull
IllegalArgumentException
- if properties isnull
InvalidConfigurationException
- if the XML content is invalid
-
FileSystemXmlConfig
Creates a Config based on a Hazelcast xml file and uses the System.properties to resolve variables in the XML.- Parameters:
configFile
- the path of the Hazelcast XML configuration file- Throws:
FileNotFoundException
- if the file doesn't existInvalidConfigurationException
- if the XML content is invalid
-
FileSystemXmlConfig
Creates a Config based on a Hazelcast XML file.- Parameters:
configFile
- the path of the Hazelcast xml configuration fileproperties
- the Properties to resolve variables in the XML- Throws:
IllegalArgumentException
- if configFile or properties isnull
FileNotFoundException
- if the file doesn't existInvalidConfigurationException
- if the XML content is invalid
-