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.IOExceptionpublic java.lang.Long getTimeCounter()
throws java.io.IOException
java.io.IOExceptionpublic void open()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic void reopen()
throws java.io.IOException
java.io.IOExceptionCopyright © 2012 The Apache Software Foundation