Search in sources :

Example 1 with PropertyStoreConsul

use of org.ff4j.consul.store.PropertyStoreConsul in project ff4j by ff4j.

the class PropertyStoreConsulEmbeddedTest method initPropertyStore.

/**
 * {@inheritDoc}
 */
protected PropertyStore initPropertyStore() {
    Consul c = Consul.builder().withUrl("http://localhost:8800").build();
    ConsulConnection connection = new ConsulConnection(c);
    PropertyStoreConsul consulStore = new PropertyStoreConsul(connection);
    consulStore.importPropertiesFromXmlFile("ff4j.xml");
    return consulStore;
}
Also used : PropertyStoreConsul(org.ff4j.consul.store.PropertyStoreConsul) PropertyStoreConsul(org.ff4j.consul.store.PropertyStoreConsul) Consul(com.orbitz.consul.Consul) ConsulConnection(org.ff4j.consul.ConsulConnection)

Example 2 with PropertyStoreConsul

use of org.ff4j.consul.store.PropertyStoreConsul in project ff4j by ff4j.

the class PropertyStoreConsulTestIT method initPropertyStore.

/**
 * {@inheritDoc}
 */
protected PropertyStore initPropertyStore() {
    ConsulConnection connection = new ConsulConnection();
    PropertyStoreConsul consulStore = new PropertyStoreConsul(connection);
    consulStore.importPropertiesFromXmlFile("ff4j.xml");
    return consulStore;
}
Also used : PropertyStoreConsul(org.ff4j.consul.store.PropertyStoreConsul) ConsulConnection(org.ff4j.consul.ConsulConnection)

Aggregations

ConsulConnection (org.ff4j.consul.ConsulConnection)2 PropertyStoreConsul (org.ff4j.consul.store.PropertyStoreConsul)2 Consul (com.orbitz.consul.Consul)1