public class YamlClientConfigBuilder extends AbstractYamlConfigBuilder
ClientConfig
using YAML.Constructor and Description |
---|
YamlClientConfigBuilder()
Loads the client config using the following resolution mechanism:
first it checks if a system property 'hazelcast.client.config' is set.
|
YamlClientConfigBuilder(File file) |
YamlClientConfigBuilder(InputStream in) |
YamlClientConfigBuilder(String resource) |
YamlClientConfigBuilder(URL url) |
YamlClientConfigBuilder(YamlClientConfigLocator locator)
Constructs a
YamlClientConfigBuilder that loads the configuration
with the provided YamlClientConfigLocator . |
Modifier and Type | Method and Description |
---|---|
ClientConfig |
build() |
ClientConfig |
build(ClassLoader classLoader) |
protected String |
getConfigRoot() |
void |
setProperties(Properties properties) |
getProperties, importDocuments, replaceVariables, setPropertiesInternal
public YamlClientConfigBuilder(String resource) throws IOException
IOException
public YamlClientConfigBuilder(File file) throws IOException
IOException
public YamlClientConfigBuilder(URL url) throws IOException
IOException
public YamlClientConfigBuilder(InputStream in)
public YamlClientConfigBuilder()
public YamlClientConfigBuilder(YamlClientConfigLocator locator)
YamlClientConfigBuilder
that loads the configuration
with the provided YamlClientConfigLocator
.
If the provided YamlClientConfigLocator
is null
, a new
instance is created and the config is located in every possible
places. For these places, please see YamlClientConfigLocator
.
If the provided YamlClientConfigLocator
is not null
, it
is expected that it already located the configuration YAML to load
from. No further attempt to locate the configuration YAML is made
if the configuration YAML is not located already.locator
- the configured locator to usepublic ClientConfig build()
public ClientConfig build(ClassLoader classLoader)
public void setProperties(Properties properties)
protected String getConfigRoot()
getConfigRoot
in class AbstractYamlConfigBuilder
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.