Package com.codahale.metrics

Examples of com.codahale.metrics.Clock$CpuTimeClock


  @Override
  protected void configure() {
    // NOTE: AdminServletModule (metrics-guice integration) generates invalid links, so wire up servlets ourselves

    final Clock clock = Clock.defaultClock();
    bind(Clock.class).toInstance(clock);

    final JsonFactory jsonFactory = new JsonFactory(new ObjectMapper());
    bind(JsonFactory.class).toInstance(jsonFactory);
View Full Code Here


    @Before
    public void setUp() throws Exception {
        this.registry = new MetricRegistry() {
            @Override
            public Timer timer(final String name) {
                return new Timer(new ExponentiallyDecayingReservoir(), new Clock() {

                    private long val = 0;

                    @Override
                    public long getTick() {
View Full Code Here

TOP

Related Classes of com.codahale.metrics.Clock$CpuTimeClock

Copyright © 2018 www.massapicom. 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.