Examples of DistributingMetric


Examples of com.bluesoft.util.metrics.core.impl.DistributingMetric

  @Test
  public void testTryTimer() throws Exception {
    TimingMetric metric = new BasicTimingMetric( "test" );
    TimingMetric exMetric = new BasicTimingMetric( "exTest" );
    DistributingMetric distMetric = new DistributingMetric( "distTest",
                                                            map( pairOf( Conditions.all(), "test" ), pairOf( Conditions.exception(), "exTest" ) ),
                                                            metric, exMetric );

    try ( Recorder t = Recorder.recordFor( distMetric ) ) {
      Thread.sleep( 100L );
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.