Examples of StatsModule


Examples of com.twitter.common.application.modules.StatsModule

        });

    Injector injector = Guice.createInjector(
        new ServletModule(),
        new LogModule(),
        new StatsModule(),
        new HttpModule(),
        new LifecycleModule(),
        new AbstractModule() {
          <T> T bindMock(Class<T> clazz) {
            T mock = createMock(clazz);
View Full Code Here

Examples of com.twitter.common.application.modules.StatsModule

      String statsURLPrefix) {

    return ImmutableList.<Module>builder()
        .add(new LogModule())
        .add(new HttpModule())
        .add(new StatsModule())
        .add(new AppModule(clusterName, serverSetPath, zkClientConfig, statsURLPrefix))
        .addAll(getExtraModules())
        .add(new LogStorageModule())
        .add(new MemStorageModule(Bindings.annotatedKeyFactory(LogStorage.WriteBehind.class)))
        .add(new CronModule())
View Full Code Here

Examples of com.twitter.common.application.modules.StatsModule

  public Iterable<? extends Module> getModules() {
    return Arrays.asList(
        new HttpModule(),
        new LogModule(),
        new RestModule(),
        new StatsModule()
    );
  }
View Full Code Here

Examples of com.twitter.common.application.modules.StatsModule

  @Override
  public Iterable<? extends Module> getModules() {
    return Arrays.asList(
        new HttpModule(),
        new LogModule(),
        new StatsModule(),
        new HdfsDuModule());
  }
View Full Code Here

Examples of com.twitter.common.application.modules.StatsModule

      String serverSetPath,
      ClientConfig zkClientConfig,
      String statsURLPrefix) {

    return ImmutableList.<Module>builder()
        .add(new StatsModule())
        .add(new AppModule(clusterName, serverSetPath, zkClientConfig, statsURLPrefix))
        .addAll(getExtraModules())
        .add(getPersistentStorageModule())
        .add(new MemStorageModule(Bindings.annotatedKeyFactory(LogStorage.WriteBehind.class)))
        .add(new CronModule())
View Full Code Here

Examples of com.twitter.common.application.modules.StatsModule

        createMock(new Clazz<DynamicHostSet<ServiceInstance>>() {
        });

    injector = Guice.createInjector(
        new JettyServerModule(),
        new StatsModule(),
        new LifecycleModule(),
        new AbstractModule() {
          <T> T bindMock(Class<T> clazz) {
            T mock = createMock(clazz);
            bind(clazz).toInstance(mock);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.