Codota Logo
ConfigurationModule
Code IndexAdd Codota to your IDE (free)

How to use
ConfigurationModule
in
co.cask.coopr.common.conf.guice

Best Java code snippets using co.cask.coopr.common.conf.guice.ConfigurationModule (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: caskdata/coopr

 @Override
 protected void configure() {
  bind(Configuration.class).toInstance(conf);
 }
}
origin: caskdata/coopr

@BeforeClass
public static void setupMemoryPluginStoreTest() throws Exception {
 conf = Configuration.create();
 Injector injector = Guice.createInjector(
  new ConfigurationModule(conf),
  new TestStoreModule()
 );
 store = injector.getInstance(MemoryPluginStore.class);
}
origin: caskdata/coopr

@BeforeClass
public static void setupClass() {
 Configuration conf = BaseTest.createTestConf();
 Injector injector = Guice.createInjector(
  new ConfigurationModule(conf),
  new TestStoreModule()
 );
 store = injector.getInstance(SQLCredentialStore.class);
 store.startAndWait();
}
origin: caskdata/coopr

@BeforeClass
public static void setupTestClass() throws Exception {
 Configuration conf = BaseTest.createTestConf();
 Injector injector = Guice.createInjector(
  new ConfigurationModule(conf),
  new TestStoreModule()
 );
 service = injector.getInstance(SQLPluginMetaStoreService.class);
 service.startAndWait();
}
origin: caskdata/coopr

new ConfigurationModule(conf),
new ZookeeperModule(zkClientService),
new StoreModule(conf),
origin: caskdata/coopr

@BeforeClass
public static void setupTestClass() {
 Configuration conf = Configuration.create();
 Injector injector = Guice.createInjector(
  new ConfigurationModule(conf)
 );
 provisionerRequestService = injector.getInstance(HttpProvisionerRequestService.class);
 stubProvisioner = new StubProvisioner();
 stubProvisioner.startAndWait();
 port = stubProvisioner.getBindAddress().getPort();
 host = stubProvisioner.getBindAddress().getHostName();
}
origin: caskdata/coopr

@BeforeClass
public static void beforeClass() throws SQLException, ClassNotFoundException {
 Configuration sqlConf = BaseTest.createTestConf();
 Injector injector = Guice.createInjector(
  new ConfigurationModule(sqlConf),
  new TestStoreModule(),
  new CodecModules().getModule()
 );
 sqlStore = injector.getInstance(SQLEntityStoreService.class);
 sqlStore.startAndWait();
 entityStoreService = sqlStore;
}
origin: caskdata/coopr

@BeforeClass
public static void setupSQLNodeStoreTest() throws SQLException {
 Configuration sqlConf = BaseTest.createTestConf();
 Injector injector = Guice.createInjector(new ConfigurationModule(sqlConf),
                      new TestStoreModule(),
                      new CodecModules().getModule());
 sqlNodeStoreService = injector.getInstance(SQLNodeStoreService.class);
 sqlNodeStoreService.startAndWait();
}
origin: caskdata/coopr

@BeforeClass
public static void setupTestClass() throws Exception {
 Configuration sqlConf = BaseTest.createTestConf();
 Injector injector = Guice.createInjector(
  new ConfigurationModule(sqlConf),
  new TestStoreModule(),
  new CodecModules().getModule()
 );
 store = injector.getInstance(SQLProvisionerStore.class);
 store.startAndWait();
}
origin: caskdata/coopr

@BeforeClass
public static void beforeClass() throws SQLException, ClassNotFoundException {
 Configuration sqlConf = BaseTest.createTestConf();
 Injector injector = Guice.createInjector(
  new ConfigurationModule(sqlConf),
  new TestStoreModule(),
  new CodecModules().getModule()
 );
 sqlStore = injector.getInstance(SQLUserStore.class);
 sqlStore.startAndWait();
 sqlStore.clearData();
}
origin: caskdata/coopr

@BeforeClass
public static void beforeClass() throws SQLException, ClassNotFoundException {
 Configuration sqlConf = BaseTest.createTestConf();
 Injector injector = Guice.createInjector(
  new ConfigurationModule(sqlConf),
  new TestStoreModule(),
  new CodecModules().getModule()
 );
 sqlStore = injector.getInstance(SQLTenantStore.class);
 sqlStore.startAndWait();
 sqlStore.clearData();
 store = sqlStore;
}
origin: caskdata/coopr

@BeforeClass
public static void setupSQLClusterStoreTest() throws Exception {
 Configuration sqlConf = BaseTest.createTestConf();
 sqlConf.setLong(Constants.ID_START_NUM, 1);
 sqlConf.setLong(Constants.ID_INCREMENT_BY, 1);
 Injector injector = Guice.createInjector(
  new ConfigurationModule(sqlConf),
  new TestStoreModule(),
  new CodecModules().getModule()
 );
 sqlClusterStoreService = injector.getInstance(SQLClusterStoreService.class);
 sqlClusterStoreService.startAndWait();
}
origin: caskdata/coopr

injector = Guice.createInjector(
 Modules.override(
  new ConfigurationModule(conf),
  new ZookeeperModule(zkClientService),
  new TestStoreModule(),
co.cask.coopr.common.conf.guiceConfigurationModule

Javadoc

Guice module that binds Configuration to a specific configuration instance.

Most used methods

  • <init>
  • bind

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • onCreateOptionsMenu (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • String (java.lang)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now