public class EtcdPropertySource
extends org.apache.tamaya.mutableconfig.propertysources.AbstractMutablePropertySource
etcd.prefix
as system property maps the etcd based onfiguration
to this prefix namespace. Etcd servers are configured as etcd.server.urls
system or environment property.
ETcd can be disabled by setting tamaya.etcdprops.disable
either as env or system property.Constructor and Description |
---|
EtcdPropertySource() |
Modifier and Type | Method and Description |
---|---|
protected void |
commitInternal(org.apache.tamaya.mutableconfig.propertysources.ConfigChangeContext context) |
org.apache.tamaya.spi.PropertyValue |
get(String key) |
int |
getDefaultOrdinal()
Returns the default ordinal used, when no ordinal is set, or the ordinal was not parseable to an int value.
|
String |
getName() |
int |
getOrdinal() |
Map<String,String> |
getProperties() |
boolean |
isScannable() |
public int getOrdinal()
getOrdinal
in interface org.apache.tamaya.spi.PropertySource
getOrdinal
in class org.apache.tamaya.spisupport.BasePropertySource
public int getDefaultOrdinal()
getDefaultOrdinal
in class org.apache.tamaya.spisupport.BasePropertySource
public String getName()
public org.apache.tamaya.spi.PropertyValue get(String key)
get
in interface org.apache.tamaya.spi.PropertySource
get
in class org.apache.tamaya.spisupport.BasePropertySource
public boolean isScannable()
isScannable
in interface org.apache.tamaya.spi.PropertySource
isScannable
in class org.apache.tamaya.spisupport.BasePropertySource
protected void commitInternal(org.apache.tamaya.mutableconfig.propertysources.ConfigChangeContext context)
commitInternal
in class org.apache.tamaya.mutableconfig.propertysources.AbstractMutablePropertySource
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.