com.hazelcast.client.config
Class XmlClientConfigBuilder
java.lang.Object
com.hazelcast.config.AbstractXmlConfigHelper
com.hazelcast.client.config.XmlClientConfigBuilder
public class XmlClientConfigBuilder
- extends AbstractXmlConfigHelper
Loads the ClientConfig
using XML.
Methods inherited from class com.hazelcast.config.AbstractXmlConfigHelper |
appendToken, checkTrue, cleanNodeName, cleanNodeName, fillDataSerializableFactories, fillNativeMemoryConfig, fillPortableFactories, fillProperties, fillSerializers, getAttribute, getIntegerValue, getLongValue, getTextContent, hasTextContent, parseSerialization, parseSocketInterceptorConfig, xmlToJavaName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlClientConfigBuilder
public XmlClientConfigBuilder(String resource)
throws IOException
- Throws:
IOException
XmlClientConfigBuilder
public XmlClientConfigBuilder(File file)
throws IOException
- Throws:
IOException
XmlClientConfigBuilder
public XmlClientConfigBuilder(URL url)
throws IOException
- Throws:
IOException
XmlClientConfigBuilder
public XmlClientConfigBuilder(InputStream in)
XmlClientConfigBuilder
public XmlClientConfigBuilder()
- Loads the client config using the following resolution mechanism:
- first it checks if a system property 'hazelcast.client.config' is set. If it exist and it begins with
'classpath:', then a classpath resource is loaded. Else it will assume it is a file reference
- it checks if a hazelcast-client.xml is available in the working dir
- it checks if a hazelcast-client.xml is available on the classpath
- it loads the hazelcast-client-default.xml
build
public ClientConfig build()
build
public ClientConfig build(ClassLoader classLoader)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.