public static class Metrics.MetricsScope extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes scope, and records the time taken
|
Long |
getNumCounter() |
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 Long getNumCounter() throws IOException
IOExceptionpublic Long getTimeCounter() throws IOException
IOExceptionpublic void open()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void reopen()
throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.