|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.config.sources.URLConfigurationSource
public class URLConfigurationSource
A polled configuration source based on a set of URLs. For each poll, it always returns the complete union of properties defined in all files. If one property is defined in more than one URL, the value in file later on the list will override the value in the previous one. The content of the URL should conform to the properties file format.
Field Summary | |
---|---|
static java.lang.String |
CONFIG_URL
System property name to define a set of URLs to be used by the default constructor. |
static java.lang.String |
DEFAULT_CONFIG_FILE_FROM_CLASSPATH
|
static java.lang.String |
DEFAULT_CONFIG_FILE_NAME
Default configuration file name to be used by default constructor. |
Constructor Summary | |
---|---|
URLConfigurationSource()
Create the instance for the default list of URLs, which is composed by the following order A configuration file (default name to be config.properties , see DEFAULT_CONFIG_FILE_NAME ) on the classpath
A list of URLs defined by system property "archaius.configurationSource.additionalUrls" with values separated by comma "," . |
|
URLConfigurationSource(java.lang.String... urls)
Create an instance with a list URLs to be used. |
|
URLConfigurationSource(java.net.URL... urls)
Create an instance with a list URLs to be used. |
Method Summary | |
---|---|
PollResult |
poll(boolean initial,
java.lang.Object checkPoint)
Retrieve the content of the property files. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIG_URL
public static final java.lang.String DEFAULT_CONFIG_FILE_NAME
configurationSource.defaultFileName
public static final java.lang.String DEFAULT_CONFIG_FILE_FROM_CLASSPATH
Constructor Detail |
---|
public URLConfigurationSource(java.lang.String... urls)
urls
- list of URLs to be usedpublic URLConfigurationSource(java.net.URL... urls)
urls
- list of URLs to be usedpublic URLConfigurationSource()
config.properties
, see DEFAULT_CONFIG_FILE_NAME
) on the classpath
","
.
Method Detail |
---|
public PollResult poll(boolean initial, java.lang.Object checkPoint) throws java.io.IOException
poll
in interface PolledConfigurationSource
initial
- this parameter is ignored by the implementationcheckPoint
- this parameter is ignored by the implementation
java.io.IOException
- IOException occurred in file operationpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |