This project has retired. For details please refer to its Attic page.
MethodMetricsContext (Lens 2.1.0-beta-incubating API)

org.apache.lens.server.api.metrics
Interface MethodMetricsContext

All Known Implementing Classes:
DisabledMethodMetricsContext, MethodMetricGauge, MethodMetrics.Context

public interface MethodMetricsContext

Metrics context for a method. Has methods to start/end measuring metrics and one callback for errors


Method Summary
 void markError()
          Error came.
 void markSuccess()
          Method succeeded.
 

Method Detail

markError

void markError()
Error came. Mark it.


markSuccess

void markSuccess()
Method succeeded. mark it.



Copyright © 2014–2015 Apache Software Foundation. All rights reserved.