public class ConsulConnection extends Object implements KeyValueDriver<String,String>
| Constructor and Description |
|---|
ConsulConnection()
Default.
|
ConsulConnection(com.orbitz.consul.Consul definedConsul)
Constructor with existing configuration.
|
ConsulConnection(com.orbitz.consul.Consul definedConsul,
ConsulKeyBuilder keyBuilder)
Constructor with existing configuration and keyBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteKey(String key) |
boolean |
existKey(String key) |
com.orbitz.consul.AgentClient |
getAgentClient()
Getter accessor for attribute 'agentClient'.
|
String |
getAuditTrailKey(Event e) |
com.orbitz.consul.Consul |
getConsul()
Getter accessor for attribute 'consul'.
|
String |
getFeatureKey(String featureName) |
Set<String> |
getFeatureList() |
String |
getFeatureName(String key) |
com.orbitz.consul.HealthClient |
getHealthClient()
Getter accessor for attribute 'healthClient'.
|
String |
getHitCountKey(Event e) |
com.orbitz.consul.KeyValueClient |
getKeyValueClient()
Getter accessor for attribute 'keyValueClient'.
|
String |
getMissKey(Event e) |
String |
getPropertyKey(String propertyName) |
Set<String> |
getPropertyList() |
String |
getPropertyName(String key) |
String |
getValue(String key) |
void |
putValue(String key,
String value) |
void |
registerFeature(String featureName) |
void |
registerProperty(String propertyName) |
void |
unregisterFeature(String featureName) |
void |
unregisterProperty(String propertyName) |
public ConsulConnection()
public ConsulConnection(com.orbitz.consul.Consul definedConsul)
definedConsul - target consulpublic ConsulConnection(com.orbitz.consul.Consul definedConsul,
ConsulKeyBuilder keyBuilder)
definedConsul - target consulkeyBuilder - the key builderpublic com.orbitz.consul.Consul getConsul()
public com.orbitz.consul.AgentClient getAgentClient()
public com.orbitz.consul.HealthClient getHealthClient()
public com.orbitz.consul.KeyValueClient getKeyValueClient()
public boolean existKey(String key)
existKey in interface KeyValueDriver<String,String>public void deleteKey(String key)
deleteKey in interface KeyValueDriver<String,String>public String getValue(String key)
getValue in interface KeyValueDriver<String,String>public void putValue(String key, String value)
putValue in interface KeyValueDriver<String,String>public String getFeatureKey(String featureName)
getFeatureKey in interface KeyValueDriver<String,String>public String getFeatureName(String key)
getFeatureName in interface KeyValueDriver<String,String>public Set<String> getFeatureList()
getFeatureList in interface KeyValueDriver<String,String>public void registerFeature(String featureName)
registerFeature in interface KeyValueDriver<String,String>public void unregisterFeature(String featureName)
unregisterFeature in interface KeyValueDriver<String,String>public String getPropertyKey(String propertyName)
getPropertyKey in interface KeyValueDriver<String,String>public String getPropertyName(String key)
getPropertyName in interface KeyValueDriver<String,String>public Set<String> getPropertyList()
getPropertyList in interface KeyValueDriver<String,String>public void registerProperty(String propertyName)
registerProperty in interface KeyValueDriver<String,String>public void unregisterProperty(String propertyName)
unregisterProperty in interface KeyValueDriver<String,String>public String getHitCountKey(Event e)
getHitCountKey in interface KeyValueDriver<String,String>public String getMissKey(Event e)
getMissKey in interface KeyValueDriver<String,String>public String getAuditTrailKey(Event e)
getAuditTrailKey in interface KeyValueDriver<String,String>Copyright © 2013–2022 FF4J. All rights reserved.