Search in sources :

Example 1 with FeatureStoreConsul

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

the class FeatureStoreConsulTestIT method initStore.

/**
 * {@inheritDoc}
 */
protected FeatureStore initStore() {
    ConsulConnection connection = new ConsulConnection();
    FeatureStoreConsul consulStore = new FeatureStoreConsul(connection);
    consulStore.importFeaturesFromXmlFile("ff4j.xml");
    return consulStore;
}
Also used : FeatureStoreConsul(org.ff4j.consul.store.FeatureStoreConsul) ConsulConnection(org.ff4j.consul.ConsulConnection)

Example 2 with FeatureStoreConsul

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

the class FeatureStoreConsulEmbeddedTest method initStore.

/**
 * {@inheritDoc}
 */
protected FeatureStore initStore() {
    Consul c = Consul.builder().withUrl("http://localhost:8800").build();
    ConsulConnection connection = new ConsulConnection(c);
    FeatureStoreConsul ehcacheStore = new FeatureStoreConsul(connection);
    ehcacheStore.importFeaturesFromXmlFile("ff4j.xml");
    return ehcacheStore;
}
Also used : Consul(com.orbitz.consul.Consul) FeatureStoreConsul(org.ff4j.consul.store.FeatureStoreConsul) FeatureStoreConsul(org.ff4j.consul.store.FeatureStoreConsul) ConsulConnection(org.ff4j.consul.ConsulConnection)

Aggregations

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