public static class Metrics.MetricsScope
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes scope, and records the time taken
|
java.lang.Long |
getNumCounter() |
java.lang.Long |
getTimeCounter() |
void |
open()
Opens scope, and makes note of the time started, increments run counter
|
void |
reopen()
Closes scope if open, and reopens it
|
public java.lang.Long getNumCounter() throws java.io.IOException
java.io.IOException
public java.lang.Long getTimeCounter() throws java.io.IOException
java.io.IOException
public void open() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void reopen() throws java.io.IOException
java.io.IOException
Copyright © 2012 The Apache Software Foundation