public class FileSystemXmlConfig extends Config
Config
which includes functionality for loading itself from a
XML configuration file.
Unlike Config.loadFromFile(File)
and its variants, a configuration constructed via
FileSystemXmlConfig
does not apply overrides found in environment variables/system properties.
DEFAULT_CLUSTER_NAME
Constructor and 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.
|
addCacheConfig, addCardinalityEstimatorConfig, addDataConnectionConfig, addDeviceConfig, addDurableExecutorConfig, addExecutorConfig, addFlakeIdGeneratorConfig, addListConfig, addListenerConfig, addMapConfig, addMultiMapConfig, addPNCounterConfig, addQueueConfig, addReliableTopicConfig, addReplicatedMapConfig, addRingBufferConfig, addScheduledExecutorConfig, addSetConfig, addSplitBrainProtectionConfig, addTopicConfig, addWanReplicationConfig, findCacheConfig, findCacheConfigOrNull, findCardinalityEstimatorConfig, findDataConnectionConfig, 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, getDataConnectionConfig, getDataConnectionConfigs, getDeviceConfig, getDeviceConfig, getDeviceConfigs, getDurableExecutorConfig, getDurableExecutorConfigs, getDynamicConfigurationConfig, getExecutorConfig, getExecutorConfigs, getFlakeIdGeneratorConfig, getFlakeIdGeneratorConfigs, getHotRestartPersistenceConfig, getInstanceName, getInstanceTrackingConfig, getIntegrityCheckerConfig, getJetConfig, getLicenseKey, getListConfig, getListConfigs, getListenerConfigs, getManagedContext, getManagementCenterConfig, getMapConfig, getMapConfigOrNull, getMapConfigs, getMemberAttributeConfig, getMetricsConfig, getMultiMapConfig, getMultiMapConfigs, getNativeMemoryConfig, getNetworkConfig, getPartitionGroupConfig, getPersistenceConfig, getPNCounterConfig, getPNCounterConfigs, getProperties, getProperty, getQueueConfig, getQueueConfigs, getReliableTopicConfig, getReliableTopicConfigs, getReplicatedMapConfig, getReplicatedMapConfigs, getRingbufferConfig, getRingbufferConfigs, getScheduledExecutorConfig, getScheduledExecutorConfigs, getSecurityConfig, getSerializationConfig, getServicesConfig, getSetConfig, getSetConfigs, getSplitBrainProtectionConfig, getSplitBrainProtectionConfigs, getSqlConfig, getTopicConfig, getTopicConfigs, getTpcConfig, getUserCodeDeploymentConfig, getUserContext, getWanReplicationConfig, getWanReplicationConfigs, isLiteMember, load, loadDefault, loadDefault, loadFromClasspath, loadFromClasspath, loadFromFile, loadFromFile, loadFromStream, loadFromStream, loadFromString, loadFromString, setAdvancedNetworkConfig, setAuditlogConfig, setCacheConfigs, setCardinalityEstimatorConfigs, setClassLoader, setClusterName, setConfigPatternMatcher, setConfigurationFile, setConfigurationUrl, setCPSubsystemConfig, setCRDTReplicationConfig, setDataConnectionConfigs, setDeviceConfigs, setDurableExecutorConfigs, setDynamicConfigurationConfig, setExecutorConfigs, setFlakeIdGeneratorConfigs, setHotRestartPersistenceConfig, setInstanceName, setInstanceTrackingConfig, setIntegrityCheckerConfig, setJetConfig, setLicenseKey, setListConfigs, setListenerConfigs, setLiteMember, setManagedContext, setManagementCenterConfig, setMapConfigs, setMemberAttributeConfig, setMetricsConfig, setMultiMapConfigs, setNativeMemoryConfig, setNetworkConfig, setPartitionGroupConfig, setPersistenceConfig, setPNCounterConfigs, setProperties, setProperty, setQueueConfigs, setReliableTopicConfigs, setReplicatedMapConfigs, setRingbufferConfigs, setScheduledExecutorConfigs, setSecurityConfig, setSerializationConfig, setSetConfigs, setSplitBrainProtectionConfigs, setSqlConfig, setTopicConfigs, setTpcConfig, setUserCodeDeploymentConfig, setUserContext, setWanReplicationConfigs, toString
public FileSystemXmlConfig(String configFilename) throws FileNotFoundException
configFilename
- the path of the Hazelcast xml configuration fileNullPointerException
- if configFilename is null
FileNotFoundException
- if the file is not foundInvalidConfigurationException
- if the XML content is invalidpublic FileSystemXmlConfig(String configFilename, Properties properties) throws FileNotFoundException
configFilename
- the path of the Hazelcast XML configuration fileproperties
- the Properties to resolve variables in the XMLFileNotFoundException
- if the file is not foundNullPointerException
- if configFilename is null
IllegalArgumentException
- if properties is null
InvalidConfigurationException
- if the XML content is invalidpublic FileSystemXmlConfig(File configFile) throws FileNotFoundException
configFile
- the path of the Hazelcast XML configuration fileFileNotFoundException
- if the file doesn't existInvalidConfigurationException
- if the XML content is invalidpublic FileSystemXmlConfig(File configFile, Properties properties) throws FileNotFoundException
configFile
- the path of the Hazelcast xml configuration fileproperties
- the Properties to resolve variables in the XMLIllegalArgumentException
- if configFile or properties is null
FileNotFoundException
- if the file doesn't existInvalidConfigurationException
- if the XML content is invalidCopyright © 2024 Hazelcast, Inc.. All rights reserved.