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
IOException
public Long getTimeCounter() throws IOException
IOException
public void open() throws IOException
IOException
public void close() throws IOException
IOException
public void reopen() throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.