All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.ndbench.plugin.es.NfndbenchEsModule Maven / Gradle / Ivy

package com.netflix.ndbench.plugin.es;

import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.netflix.archaius.ConfigProxyFactory;
import com.netflix.ndbench.api.plugin.annotations.NdBenchClientPluginGuiceModule;

import javax.inject.Singleton;


@NdBenchClientPluginGuiceModule
public final class NfndbenchEsModule extends AbstractModule {
    @Override
    protected void configure() {
    }

    @Provides
    @Singleton
    IEsConfig getEsNfndbenchConfig(ConfigProxyFactory factory) {
        // Here we turn the config interface into an implementation that can load dynamic properties.
        return factory.newProxy(IEsConfig.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy