public class XmlClientFailoverConfigBuilder extends AbstractXmlConfigBuilder
ClientFailoverConfig
using XML.AbstractXmlConfigBuilder.ConfigType
domLevel3
Constructor and Description |
---|
XmlClientFailoverConfigBuilder()
Loads the client failover config using the following resolution mechanism:
first it checks if a system property 'hazelcast.client.failover.config' is set.
|
XmlClientFailoverConfigBuilder(File file) |
XmlClientFailoverConfigBuilder(InputStream in) |
XmlClientFailoverConfigBuilder(String resource) |
XmlClientFailoverConfigBuilder(URL url) |
XmlClientFailoverConfigBuilder(XmlClientFailoverConfigLocator locator)
Constructs a
XmlClientFailoverConfigBuilder that loads the configuration
with the provided XmlClientFailoverConfigLocator . |
Modifier and Type | Method and Description |
---|---|
ClientFailoverConfig |
build() |
ClientFailoverConfig |
build(ClientFailoverConfig clientFailoverConfig) |
protected AbstractXmlConfigBuilder.ConfigType |
getConfigType() |
protected Document |
parse(InputStream inputStream)
Reads XML from InputStream and parses.
|
void |
setProperties(Properties properties) |
getProperties, process, setPropertiesInternal
appendToken, getNamespaceType, getReleaseVersion, loadSchemaFile, schemaValidation, xmlToJavaName
public XmlClientFailoverConfigBuilder(String resource) throws IOException
IOException
public XmlClientFailoverConfigBuilder(File file) throws IOException
IOException
public XmlClientFailoverConfigBuilder(URL url) throws IOException
IOException
public XmlClientFailoverConfigBuilder(InputStream in)
public XmlClientFailoverConfigBuilder()
HazelcastException
- if no failover configuration is foundpublic XmlClientFailoverConfigBuilder(XmlClientFailoverConfigLocator locator)
XmlClientFailoverConfigBuilder
that loads the configuration
with the provided XmlClientFailoverConfigLocator
.
If the provided XmlClientFailoverConfigLocator
is null
, a new
instance is created and the config is located in every possible
places. For these places, please see XmlClientFailoverConfigLocator
.
If the provided XmlClientFailoverConfigLocator
is not null
, it
is expected that it already located the configuration XML to load
from. No further attempt to locate the configuration XML is made
if the configuration XML is not located already.locator
- the configured locator to useHazelcastException
- if no failover configuration is foundprotected Document parse(InputStream inputStream) throws Exception
AbstractXmlConfigBuilder
parse
in class AbstractXmlConfigBuilder
inputStream
- InputStream
to read fromException
- if the XML configuration cannot be parsed or is invalidprotected AbstractXmlConfigBuilder.ConfigType getConfigType()
getConfigType
in class AbstractXmlConfigBuilder
public ClientFailoverConfig build()
public ClientFailoverConfig build(ClientFailoverConfig clientFailoverConfig)
public void setProperties(Properties properties)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.