Package com.hazelcast.config
Class FileSystemYamlConfig
- java.lang.Object
-
- com.hazelcast.config.Config
-
- com.hazelcast.config.FileSystemYamlConfig
-
public class FileSystemYamlConfig extends Config
AConfig
which includes functionality for loading itself from a YAML configuration file.Unlike
Config.loadFromFile(File)
and its variants, a configuration constructed viaFileSystemYamlConfig
does not apply overrides found in environment variables/system properties.
-
-
Field Summary
-
Fields inherited from class com.hazelcast.config.Config
DEFAULT_CLUSTER_NAME
-
-
Constructor Summary
Constructors Constructor Description FileSystemYamlConfig(java.io.File configFile)
Creates a Config based on a Hazelcast yaml file and uses the System.properties to resolve variables in the YAML.FileSystemYamlConfig(java.io.File configFile, java.util.Properties properties)
Creates a Config based on a Hazelcast YAML file.FileSystemYamlConfig(java.lang.String configFilename)
Creates a Config based on a Hazelcast yaml file and uses the System.properties to resolve variables in the YAML.FileSystemYamlConfig(java.lang.String configFilename, java.util.Properties properties)
Creates a Config based on a Hazelcast YAML file.
-
Method Summary
-
Methods inherited from class com.hazelcast.config.Config
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
-
-
-
-
Constructor Detail
-
FileSystemYamlConfig
public FileSystemYamlConfig(java.lang.String configFilename) throws java.io.FileNotFoundException
Creates a Config based on a Hazelcast yaml file and uses the System.properties to resolve variables in the YAML.- Parameters:
configFilename
- the path of the Hazelcast yaml configuration file- Throws:
java.lang.NullPointerException
- if configFilename isnull
java.io.FileNotFoundException
- if the file is not foundInvalidConfigurationException
- if the YAML content is invalid
-
FileSystemYamlConfig
public FileSystemYamlConfig(java.lang.String configFilename, java.util.Properties properties) throws java.io.FileNotFoundException
Creates a Config based on a Hazelcast YAML file.- Parameters:
configFilename
- the path of the Hazelcast YAML configuration fileproperties
- the Properties to resolve variables in the YAML- Throws:
java.io.FileNotFoundException
- if the file is not foundjava.lang.NullPointerException
- if configFilename isnull
java.lang.IllegalArgumentException
- if properties isnull
InvalidConfigurationException
- if the YAML content is invalid
-
FileSystemYamlConfig
public FileSystemYamlConfig(java.io.File configFile) throws java.io.FileNotFoundException
Creates a Config based on a Hazelcast yaml file and uses the System.properties to resolve variables in the YAML.- Parameters:
configFile
- the path of the Hazelcast YAML configuration file- Throws:
java.io.FileNotFoundException
- if the file doesn't existInvalidConfigurationException
- if the YAML content is invalid
-
FileSystemYamlConfig
public FileSystemYamlConfig(java.io.File configFile, java.util.Properties properties) throws java.io.FileNotFoundException
Creates a Config based on a Hazelcast YAML file.- Parameters:
configFile
- the path of the Hazelcast yaml configuration fileproperties
- the Properties to resolve variables in the YAML- Throws:
java.lang.IllegalArgumentException
- if configFile or properties isnull
java.io.FileNotFoundException
- if the file doesn't existInvalidConfigurationException
- if the YAML content is invalid
-
-