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.