Package com.hazelcast.client.config
Class ClientClasspathYamlConfig
java.lang.Object
com.hazelcast.client.config.ClientConfig
com.hazelcast.client.config.ClientClasspathYamlConfig
A
ClientConfig
which is initialized by loading an YAML configuration file from the classpath.-
Field Summary
Fields inherited from class com.hazelcast.client.config.ClientConfig
DEFAULT_CLUSTER_NAME
-
Constructor Summary
ConstructorDescriptionClientClasspathYamlConfig
(ClassLoader classLoader, String resource, Properties properties) Creates a config which is loaded from a classpath resource.ClientClasspathYamlConfig
(String resource) Creates a config which is loaded from a classpath resource using theThread.currentThread()
contextClassLoader.ClientClasspathYamlConfig
(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.client.config.ClientConfig
addFlakeIdGeneratorConfig, addLabel, addListenerConfig, addNearCacheConfig, addProxyFactoryConfig, addReliableTopicConfig, equals, findFlakeIdGeneratorConfig, getClassLoader, getClusterName, getConfigPatternMatcher, getConnectionStrategyConfig, getFlakeIdGeneratorConfig, getFlakeIdGeneratorConfigMap, getInstanceName, getInstanceTrackingConfig, getLabels, getListenerConfigs, getLoadBalancer, getLoadBalancerClassName, getManagedContext, getMetricsConfig, getNativeMemoryConfig, getNearCacheConfig, getNearCacheConfigMap, getNetworkConfig, getProperties, getProperty, getProxyFactoryConfigs, getReliableTopicConfig, getReliableTopicConfigMap, getSecurityConfig, getSerializationConfig, getUserCodeDeploymentConfig, getUserContext, hashCode, isBackupAckToClientEnabled, isCPDirectToLeaderRoutingEnabled, load, setBackupAckToClientEnabled, setClassLoader, setClusterName, setConfigPatternMatcher, setConnectionStrategyConfig, setCPDirectToLeaderRoutingEnabled, setFlakeIdGeneratorConfigMap, setInstanceName, setLabels, setListenerConfigs, setLoadBalancer, setLoadBalancerClassName, setManagedContext, setMetricsConfig, setNativeMemoryConfig, setNearCacheConfigMap, setNetworkConfig, setProperties, setProperty, setProxyFactoryConfigs, setReliableTopicConfigMap, setSecurityConfig, setSerializationConfig, setUserCodeDeploymentConfig, setUserContext, toString
-
Constructor Details
-
ClientClasspathYamlConfig
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
-
ClientClasspathYamlConfig
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
-
ClientClasspathYamlConfig
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
-