com.hazelcast.config
Class UrlXmlConfig

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

public class UrlXmlConfig
extends Config

A Config which is loaded using some url pointing to a Hazelcast XML file.


Constructor Summary
UrlXmlConfig(String url)
          Creates new Config which is loaded from the given url and uses the System.properties to replace variables in the XML.
UrlXmlConfig(String url, Properties properties)
          Creates new Config which is loaded from the given url.
UrlXmlConfig(URL url)
          Creates new Config which is loaded from the given url and uses the System.properties to replace variables in the XML.
UrlXmlConfig(URL url, Properties properties)
          Creates new Config which is loaded from the given url.
 
Method Summary
 
Methods inherited from class com.hazelcast.config.Config
addCacheConfig, addExecutorConfig, addJobTrackerConfig, addListConfig, addListenerConfig, addMapConfig, addMultiMapConfig, addQueueConfig, addReplicatedMapConfig, addSemaphoreConfig, addSetConfig, addTopicConfig, addWanReplicationConfig, findCacheConfig, findExecutorConfig, findJobTrackerConfig, findListConfig, findMapConfig, findMultiMapConfig, findQueueConfig, findReplicatedMapConfig, findSemaphoreConfig, findSetConfig, findTopicConfig, getCacheConfig, getCacheConfigs, getClassLoader, getConfigurationFile, getConfigurationUrl, getExecutorConfig, getExecutorConfigs, getGroupConfig, getInstanceName, getJobTrackerConfig, getJobTrackerConfigs, getLicenseKey, getListConfig, getListConfigs, getListenerConfigs, getManagedContext, getManagementCenterConfig, getMapConfig, getMapConfigs, getMemberAttributeConfig, getMultiMapConfig, getMultiMapConfigs, getNativeMemoryConfig, getNetworkConfig, getPartitionGroupConfig, getProperties, getProperty, getQueueConfig, getQueueConfigs, getReplicatedMapConfig, getReplicatedMapConfigs, getSecurityConfig, getSemaphoreConfig, getSemaphoreConfigs, getSerializationConfig, getServicesConfig, getSetConfig, getSetConfigs, getTopicConfig, getTopicConfigs, getUserContext, getWanReplicationConfig, getWanReplicationConfigs, isCompatible, nameMatches, setCacheConfigs, setClassLoader, setConfigurationFile, setConfigurationUrl, setExecutorConfigs, setGroupConfig, setInstanceName, setJobTrackerConfigs, setLicenseKey, setListConfigs, setListenerConfigs, setManagedContext, setManagementCenterConfig, setMapConfigs, setMemberAttributeConfig, setMultiMapConfigs, setNativeMemoryConfig, setNetworkConfig, setPartitionGroupConfig, setProperties, setProperty, setQueueConfigs, setReplicatedMapConfigs, setSecurityConfig, setSemaphoreConfigs, setSerializationConfig, setServicesConfig, setSetConfigs, setTopicConfigs, setUserContext, setWanReplicationConfigs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
HazelcastException - 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.
HazelcastException - 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.
HazelcastException - 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.
HazelcastException - if the XML content is invalid


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.