Examples of MetricsModule


Examples of com.codahale.metrics.json.MetricsModule

        final TimeUnit rateUnit = parseTimeUnit(context.getInitParameter(RATE_UNIT),
                                                TimeUnit.SECONDS);
        final TimeUnit durationUnit = parseTimeUnit(context.getInitParameter(DURATION_UNIT),
                                                    TimeUnit.SECONDS);
        final boolean showSamples = Boolean.parseBoolean(context.getInitParameter(SHOW_SAMPLES));
        this.mapper = new ObjectMapper().registerModule(new MetricsModule(rateUnit,
                                                                          durationUnit,
                                                                          showSamples));

        this.allowedOrigin = config.getInitParameter(ALLOWED_ORIGIN);
    }
View Full Code Here

Examples of com.codahale.metrics.json.MetricsModule


  public ObjectMapperProvider(){
    ObjectMapper mapper = new ObjectMapper();
    mapper.enable(SerializationFeature.INDENT_OUTPUT);
    mapper.registerModule(new MetricsModule(TimeUnit.SECONDS, TimeUnit.SECONDS, false));

    setMapper(mapper);
  }
View Full Code Here

Examples of com.codahale.metrics.json.MetricsModule

                          TimeUnit durationUnit,
                          String kafkaTopic,
                          Properties kafkaProperties) {
        super(registry, name, filter, rateUnit, durationUnit);
        this.registry = registry;
        mapper = new ObjectMapper().registerModule(new MetricsModule(rateUnit,
                                                                     durationUnit,
                                                                     false));
        this.kafkaTopic = kafkaTopic;
        kafkaProducer = new Producer<String, String>(new ProducerConfig(kafkaProperties));
    }
View Full Code Here

Examples of com.crawljax.metrics.MetricsModule

  }

  @Override
  protected void configure() {
    LOG.debug("Configuring the core module");
    install(new MetricsModule());
    install(new ConfigurationModule(configuration));

    bind(ExitNotifier.class).toInstance(new ExitNotifier(configuration.getMaximumStates()));

    bind(ExecutorService.class).toInstance(Executors.newCachedThreadPool());
View Full Code Here

Examples of com.crawljax.metrics.MetricsModule

  @Override
  protected void configure() {
    LOG.debug("Configuring the core module");
    disableJulLogging();
    install(new MetricsModule());
    install(new ConfigurationModule(configuration));

    bind(ExitNotifier.class).toInstance(new ExitNotifier(configuration.getMaximumStates()));

    bind(ExecutorService.class).toInstance(Executors.newCachedThreadPool());
View Full Code Here

Examples of io.druid.server.metrics.MetricsModule

        new HttpClientModule("druid.broker.http", Client.class),
        new CuratorModule(),
        new AnnouncerModule(),
        new DruidProcessingModule(),
        new AWSModule(),
        new MetricsModule(),
        new ServerModule(),
        new StorageNodeModule(),
        new JettyServerModule(),
        new QueryableModule(),
        new QueryRunnerFactoryModule(),
View Full Code Here

Examples of ninja.metrics.MetricsModule

        // some additional bindings for the application:
        bind(GreetingService.class).to(GreetingServiceImpl.class).asEagerSingleton();
        // Bind the UDP ping controller so it starts up on server start
        // bind(UdpPingController.class);

        install(new MetricsModule());

    }
View Full Code Here

Examples of org.locationtech.geogig.metrics.MetricsModule

            DEFAULT_GRAPH);

    @Override
    public Context build(Hints hints) {
        return Guice.createInjector(
                Modules.override(new GeogigModule(), new CachingModule()).with(new MetricsModule(),
                        new PluginsModule(), new DefaultPlugins(), new HintsModule(hints)))
                .getInstance(org.locationtech.geogig.api.Context.class);
    }
View Full Code Here

Examples of org.sonatype.nexus.web.metrics.MetricsModule

        // our configuration needs to be first-most when calculating order (some fudge room for edge-cases)
        bind(RankingFunction.class).toInstance(new DefaultRankingFunction(0x70000000));
      }
    });

    install(new MetricsModule());

    install(new SecurityWebModule(servletContext, true));

    install(new OrientModule());
  }
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.