Package org.onosproject.utils
Class MeteringAgent.Context
- java.lang.Object
-
- org.onosproject.utils.MeteringAgent.Context
-
- Enclosing class:
- MeteringAgent
public class MeteringAgent.Context extends Object
Timer.Context with a specific operation.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
stop(Throwable e)
Stops timer given a specific context and updates all related metrics.
-
-
-
Constructor Detail
-
Context
public Context(com.codahale.metrics.Timer.Context context, String operation)
Constructs Context.- Parameters:
context
- contextoperation
- operation name
-
-
Method Detail
-
stop
public void stop(Throwable e)
Stops timer given a specific context and updates all related metrics.- Parameters:
e
- throwable
-
-