Package com.hazelcast.config
Class ClasspathYamlConfig
java.lang.Object
com.hazelcast.config.Config
com.hazelcast.config.ClasspathYamlConfig
public class ClasspathYamlConfig extends Config
A
Config
which is initialized by loading a YAML configuration file from the classpath.- See Also:
FileSystemYamlConfig
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ClasspathYamlConfig(ClassLoader classLoader, String resource)
Creates a config which is loaded from a classpath resource.ClasspathYamlConfig(ClassLoader classLoader, String resource, Properties properties)
Creates a config which is loaded from a classpath resource.ClasspathYamlConfig(String resource)
Creates a config which is loaded from a classpath resource using theThread.currentThread()
contextClassLoader.ClasspathYamlConfig(String resource, Properties properties)
Creates a config which is loaded from a classpath resource using theThread.currentThread()
contextClassLoader. -
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
-
ClasspathYamlConfig
Creates a config which is loaded from a classpath resource using theThread.currentThread()
contextClassLoader. The System.properties are used to resolve variables in the YAML.- Parameters:
resource
- the resource, a YAML configuration file from the classpath, without the "classpath:" prefix- Throws:
IllegalArgumentException
- if the resource could not be foundInvalidConfigurationException
- if the YAML content is invalid
-
ClasspathYamlConfig
Creates a config which is loaded from a classpath resource using theThread.currentThread()
contextClassLoader.- Parameters:
resource
- the resource, a YAML configuration file from the classpath, without the "classpath:" prefixproperties
- the Properties to resolve variables in the YAML- Throws:
IllegalArgumentException
- if the resource could not be found or if properties isnull
InvalidConfigurationException
- if the YAML content is invalid
-
ClasspathYamlConfig
Creates a config which is loaded from a classpath resource. The System.properties are used to resolve variables in the YAML.- Parameters:
classLoader
- the ClassLoader used to load the resourceresource
- the resource, a YAML configuration file from the classpath, without the "classpath:" prefix- Throws:
IllegalArgumentException
- if classLoader or resource isnull
, or if the resource is not foundInvalidConfigurationException
- if the YAML content is invalid
-
ClasspathYamlConfig
Creates a config which is loaded from a classpath resource.- Parameters:
classLoader
- the ClassLoader used to load the resourceresource
- the resource, a YAML configuration file from the classpath, without the "classpath:" prefixproperties
- the properties used to resolve variables in the YAML- Throws:
IllegalArgumentException
- if classLoader or resource isnull
, or if the resource is not foundInvalidConfigurationException
- if the YAML content is invalid
-