public class YamlClientFailoverConfigBuilder extends AbstractYamlConfigBuilder
ClientFailoverConfig
using YAML.Constructor and Description |
---|
YamlClientFailoverConfigBuilder()
Loads the client failover config using the following resolution mechanism:
first it checks if a system property 'hazelcast.client.failover.config' is set.
|
YamlClientFailoverConfigBuilder(File file) |
YamlClientFailoverConfigBuilder(InputStream in) |
YamlClientFailoverConfigBuilder(String resource) |
YamlClientFailoverConfigBuilder(URL url) |
YamlClientFailoverConfigBuilder(YamlClientFailoverConfigLocator locator)
Constructs a
YamlClientFailoverConfigBuilder that loads the configuration
with the provided YamlClientFailoverConfigLocator . |
Modifier and Type | Method and Description |
---|---|
ClientFailoverConfig |
build() |
protected String |
getConfigRoot() |
void |
setProperties(Properties properties) |
getProperties, importDocuments, replaceVariables, setPropertiesInternal
public YamlClientFailoverConfigBuilder(String resource) throws IOException
IOException
public YamlClientFailoverConfigBuilder(File file) throws IOException
IOException
public YamlClientFailoverConfigBuilder(URL url) throws IOException
IOException
public YamlClientFailoverConfigBuilder(InputStream in)
public YamlClientFailoverConfigBuilder()
HazelcastException
- if no failover configuration is foundpublic YamlClientFailoverConfigBuilder(YamlClientFailoverConfigLocator locator)
YamlClientFailoverConfigBuilder
that loads the configuration
with the provided YamlClientFailoverConfigLocator
.
If the provided YamlClientFailoverConfigLocator
is null
, a new
instance is created and the config is located in every possible
places. For these places, please see YamlClientFailoverConfigLocator
.
If the provided YamlClientFailoverConfigLocator
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 useHazelcastException
- if no failover configuration is foundpublic ClientFailoverConfig build()
public void setProperties(Properties properties)
protected String getConfigRoot()
getConfigRoot
in class AbstractYamlConfigBuilder
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.