public class FileSystemYamlConfig extends Config
Config
which includes functionality for loading itself from a
YAML configuration file.
Unlike Config.loadFromFile(File)
and its variants, a configuration constructed via
FileSystemYamlConfig
does not apply overrides found in environment variables/system properties.
DEFAULT_CLUSTER_NAME
Constructor and Description |
---|
FileSystemYamlConfig(File configFile)
Creates a Config based on a Hazelcast yaml file and uses the System.properties to resolve
variables in the YAML.
|
FileSystemYamlConfig(File configFile,
Properties properties)
Creates a Config based on a Hazelcast YAML file.
|
FileSystemYamlConfig(String configFilename)
Creates a Config based on a Hazelcast yaml file and uses the System.properties to resolve
variables in the YAML.
|
FileSystemYamlConfig(String configFilename,
Properties properties)
Creates a Config based on a Hazelcast YAML file.
|
addCacheConfig, addCardinalityEstimatorConfig, addDeviceConfig, addDurableExecutorConfig, addExecutorConfig, addExternalDataStoreConfig, addFlakeIdGeneratorConfig, addListConfig, addListenerConfig, addMapConfig, addMultiMapConfig, addPNCounterConfig, addQueueConfig, addReliableTopicConfig, addReplicatedMapConfig, addRingBufferConfig, addScheduledExecutorConfig, addSetConfig, addSplitBrainProtectionConfig, addTopicConfig, addWanReplicationConfig, findCacheConfig, findCacheConfigOrNull, findCardinalityEstimatorConfig, findDurableExecutorConfig, findExecutorConfig, findExternalDataStoreConfig, 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, getDeviceConfig, getDeviceConfig, getDeviceConfigs, getDurableExecutorConfig, getDurableExecutorConfigs, getDynamicConfigurationConfig, getExecutorConfig, getExecutorConfigs, getExternalDataStoreConfig, getExternalDataStoreConfigs, 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, 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, setDeviceConfigs, setDurableExecutorConfigs, setDynamicConfigurationConfig, setExecutorConfigs, setExternalDataStoreConfigs, 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, setUserCodeDeploymentConfig, setUserContext, setWanReplicationConfigs, toString
public FileSystemYamlConfig(String configFilename) throws FileNotFoundException
configFilename
- the path of the Hazelcast yaml configuration fileNullPointerException
- if configFilename is null
FileNotFoundException
- if the file is not foundInvalidConfigurationException
- if the YAML content is invalidpublic FileSystemYamlConfig(String configFilename, Properties properties) throws FileNotFoundException
configFilename
- the path of the Hazelcast YAML configuration fileproperties
- the Properties to resolve variables in the YAMLFileNotFoundException
- if the file is not foundNullPointerException
- if configFilename is null
IllegalArgumentException
- if properties is null
InvalidConfigurationException
- if the YAML content is invalidpublic FileSystemYamlConfig(File configFile) throws FileNotFoundException
configFile
- the path of the Hazelcast YAML configuration fileFileNotFoundException
- if the file doesn't existInvalidConfigurationException
- if the YAML content is invalidpublic FileSystemYamlConfig(File configFile, Properties properties) throws FileNotFoundException
configFile
- the path of the Hazelcast yaml configuration fileproperties
- the Properties to resolve variables in the YAMLIllegalArgumentException
- if configFile or properties is null
FileNotFoundException
- if the file doesn't existInvalidConfigurationException
- if the YAML content is invalidCopyright © 2022 Hazelcast, Inc.. All rights reserved.