mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
rehome some APIs to nb-api
This commit is contained in:
@@ -28,7 +28,7 @@ import java.util.Map;
|
||||
*/
|
||||
public abstract class CapabilityHook<T> implements MetricRegistryListener {
|
||||
|
||||
private Map<String,T> capables = new HashMap<>();
|
||||
private final Map<String,T> capables = new HashMap<>();
|
||||
|
||||
public abstract void onCapableAdded(String name, T capable);
|
||||
public abstract void onCapableRemoved(String name, T capable);
|
||||
|
||||
@@ -46,5 +46,5 @@ public interface HdrDeltaHistogramAttachment extends HdrDeltaHistogramProvider {
|
||||
* Attach a metric.
|
||||
* @return the attached metric, after adding to the mirrors for the metric.
|
||||
*/
|
||||
public HdrDeltaHistogramProvider attachHdrDeltaHistogram();
|
||||
HdrDeltaHistogramProvider attachHdrDeltaHistogram();
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class NicerHistogram extends Histogram implements DeltaSnapshotter, HdrDe
|
||||
private final DeltaHdrHistogramReservoir hdrDeltaReservoir;
|
||||
private long cacheExpiryMillis = 0L;
|
||||
private long cacheTimeMillis = 0L;
|
||||
private String metricName;
|
||||
private final String metricName;
|
||||
private List<Histogram> mirrors;
|
||||
|
||||
public NicerHistogram(String metricName, DeltaHdrHistogramReservoir hdrHistogramReservoir) {
|
||||
|
||||
Reference in New Issue
Block a user