Package com.hazelcast.config
Class UrlYamlConfig
- java.lang.Object
-
- com.hazelcast.config.Config
-
- com.hazelcast.config.UrlYamlConfig
-
public class UrlYamlConfig extends Config
AConfig
which is loaded using some url pointing to a Hazelcast YAML file.Unlike
Config.load()
and its variants, a configuration constructed viaUrlYamlConfig
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 UrlYamlConfig(java.lang.String url)
Creates new Config which is loaded from the given url and uses the System.properties to replace variables in the YAML.UrlYamlConfig(java.lang.String url, java.util.Properties properties)
Creates new Config which is loaded from the given url.UrlYamlConfig(java.net.URL url)
Creates new Config which is loaded from the given url and uses the System.properties to replace variables in the YAML.UrlYamlConfig(java.net.URL url, java.util.Properties properties)
Creates new Config which is loaded from the given url.
-
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
-
UrlYamlConfig
public UrlYamlConfig(java.lang.String url) throws java.io.IOException
Creates new Config which is loaded from the given url and uses the System.properties to replace variables in the YAML.- Parameters:
url
- the url pointing to the Hazelcast YAML file- Throws:
java.net.MalformedURLException
- if the url is not correctjava.io.IOException
- if something fails while loading the resourceInvalidConfigurationException
- if the YAML content is invalid
-
UrlYamlConfig
public UrlYamlConfig(java.lang.String url, java.util.Properties properties) throws java.io.IOException
Creates new Config which is loaded from the given url.- Parameters:
url
- the url pointing to the Hazelcast YAML fileproperties
- the properties for replacing variables- Throws:
java.lang.IllegalArgumentException
- if properties isnull
java.net.MalformedURLException
- if the url is not correctjava.io.IOException
- if something fails while loading the resourceInvalidConfigurationException
- if the YAML content is invalid
-
UrlYamlConfig
public UrlYamlConfig(java.net.URL url) throws java.io.IOException
Creates new Config which is loaded from the given url and uses the System.properties to replace variables in the YAML.- Parameters:
url
- the URL pointing to the Hazelcast YAML file- Throws:
java.io.IOException
- if something fails while loading the resourcejava.lang.IllegalArgumentException
- if the url isnull
InvalidConfigurationException
- if the YAML content is invalid
-
UrlYamlConfig
public UrlYamlConfig(java.net.URL url, java.util.Properties properties) throws java.io.IOException
Creates new Config which is loaded from the given url.- Parameters:
url
- the URL pointing to the Hazelcast YAML fileproperties
- the properties for replacing variables- Throws:
java.io.IOException
- if something fails while loading the resourcejava.lang.IllegalArgumentException
- if the url or properties isnull
InvalidConfigurationException
- if the YAML content is invalid
-
-