Class UrlXmlConfig

java.lang.Object
com.hazelcast.config.Config
com.hazelcast.config.UrlXmlConfig

public class UrlXmlConfig
extends Config
A Config which is loaded using some url pointing to a Hazelcast XML file.
  • Constructor Details

    • UrlXmlConfig

      public UrlXmlConfig​(String url) throws IOException
      Creates new Config which is loaded from the given url and uses the System.properties to replace variables in the XML.
      Parameters:
      url - the url pointing to the Hazelcast XML file
      Throws:
      MalformedURLException - if the url is not correct
      IOException - if something fails while loading the resource
      InvalidConfigurationException - if the XML content is invalid
    • UrlXmlConfig

      public UrlXmlConfig​(String url, Properties properties) throws IOException
      Creates new Config which is loaded from the given url.
      Parameters:
      url - the url pointing to the Hazelcast XML file
      properties - the properties for replacing variables
      Throws:
      IllegalArgumentException - if properties is null
      MalformedURLException - if the url is not correct
      IOException - if something fails while loading the resource
      InvalidConfigurationException - if the XML content is invalid
    • UrlXmlConfig

      public UrlXmlConfig​(URL url) throws IOException
      Creates new Config which is loaded from the given url and uses the System.properties to replace variables in the XML.
      Parameters:
      url - the URL pointing to the Hazelcast XML file
      Throws:
      IOException - if something fails while loading the resource
      IllegalArgumentException - if the url is null
      InvalidConfigurationException - if the XML content is invalid
    • UrlXmlConfig

      public UrlXmlConfig​(URL url, Properties properties) throws IOException
      Creates new Config which is loaded from the given url.
      Parameters:
      url - the URL pointing to the Hazelcast XML file
      properties - the properties for replacing variables
      Throws:
      IOException - if something fails while loading the resource
      IllegalArgumentException - if the url or properties is null
      InvalidConfigurationException - if the XML content is invalid