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

org.apache.lens.server.api.metrics
Class MethodMetrics.Context

java.lang.Object
  extended by org.apache.lens.server.api.metrics.MethodMetrics.Context
All Implemented Interfaces:
MethodMetricsContext
Enclosing class:
MethodMetrics

public class MethodMetrics.Context
extends Object
implements MethodMetricsContext

Inner class instances handle contexts for the same instance of MethodMetrics. This is useful since one method can be executing multiple times in parallel. But the contexts will be different.


Method Summary
 void markError()
          Error came.
 void markSuccess()
          Method succeeded.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

markError

public void markError()
Description copied from interface: MethodMetricsContext
Error came. Mark it.

Specified by:
markError in interface MethodMetricsContext

markSuccess

public void markSuccess()
Description copied from interface: MethodMetricsContext
Method succeeded. mark it.

Specified by:
markSuccess in interface MethodMetricsContext


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