com.palominolabs.benchpress.controller.zookeeper.ZKServerModule.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(87)

本文整理了Java中com.palominolabs.benchpress.controller.zookeeper.ZKServerModule.<init>()方法的一些代码示例,展示了ZKServerModule.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKServerModule.<init>()方法的具体详情如下:
包路径:com.palominolabs.benchpress.controller.zookeeper.ZKServerModule
类名称:ZKServerModule
方法名:<init>

ZKServerModule.<init>介绍

暂无

代码示例

代码示例来源:origin: palominolabs/benchpress

@Override
protected void configure() {
  binder().requireExplicitBindings();
  binder().requireAtInjectOnConstructors();
  binder().requireExactBindingAnnotations();
  bind(ControllerMain.class);
  install(new ConfigModuleBuilder().addConfiguration(new SystemConfiguration()).build());
  ConfigModule.bindConfigBean(binder(), ControllerConfig.class);
  install(new ControllerCoreModule());
  install(new IpcJsonModule());
  install(new TaskPluginRegistryModule());
  install(new JerseySupportModule());
  install(new ZKServerModule());
  install(new CuratorModule());
}

代码示例来源:origin: palominolabs/benchpress

@Override
protected void configure() {
  binder().requireExplicitBindings();
  binder().requireAtInjectOnConstructors();
  binder().requireExactBindingAnnotations();
  bind(ControllerMain.class);
  install(new ConfigModuleBuilder().build());
  install(new CassandraModule());
  install(new HbaseModule());
  install(new HbaseAsyncModule());
  install(new MongoDbModule());
  install(new KeyGeneratorFactoryFactoryRegistryModule());
  install(new ValueGeneratorFactoryFactoryRegistryModule());
  install(new ControllerCoreModule());
  install(new IpcJsonModule());
  install(new TaskPluginRegistryModule());
  install(new JerseySupportModule());
  install(new ZKServerModule());
  install(new CuratorModule());
}

代码示例来源:origin: palominolabs/benchpress

@Override
protected void configure() {
  binder().requireExplicitBindings();
  binder().requireAtInjectOnConstructors();
  binder().requireExactBindingAnnotations();
  install(new ConfigModuleBuilder().addConfiguration(new MapConfiguration(configMap))
      .build());
  install(new JerseySupportModule());
  // basic zookeeper
  install(new ZKServerModule());
  install(new CuratorModule());
  // controller
  install(new IpcJsonModule());
  install(new ControllerCoreModule());
  // worker
  install(new TaskProgressClientModule());
  install(new IpcHttpClientModule());
  install(new TaskPluginRegistryModule());
  install(new WorkerResourceModule());
  bind(SliceRunner.class);
  // custom task
  install(new SimpleHttpTaskModule());
  bind(SimpleHttpResource.class);
}

相关文章

ZKServerModule类方法