@@ -0,0 +1,1747 @@
+package org.apache.cassandra.metrics;%0A/*%0A * Copyright (C) 2015 ScyllaDB%0A */%0A%0A/*%0A * This file is part of Scylla.%0A *%0A * Scylla is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * Scylla is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A *%0A * You should have received a copy of the GNU General Public License%0A * along with Scylla.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Aimport javax.ws.rs.core.MultivaluedMap;%0A%0Aimport com.cloudius.urchin.api.APIClient;%0Aimport com.cloudius.urchin.utils.EstimatedHistogram;%0A%0Apublic class EstimatedHistogramWrapper %7B%0A    private APIClient c = new APIClient();%0A    private String url;%0A    private MultivaluedMap%3CString, String%3E queryParams;%0A    private static final int DURATION = 50;%0A    private int duration;%0A    public EstimatedHistogramWrapper(String url, MultivaluedMap%3CString, String%3E queryParams, int duration) %7B%0A        this.url = url;%0A        this.queryParams = queryParams;%0A        this.duration = duration;%0A%0A    %7D%0A    public EstimatedHistogramWrapper(String url) %7B%0A        this(url, null, DURATION);%0A%0A    %7D%0A    public EstimatedHistogramWrapper(String url, int duration) %7B%0A        this(url, null, duration);%0A%0A    %7D%0A    public EstimatedHistogram get() %7B%0A        return c.getEstimatedHistogram(url, queryParams, duration);%0A    %7D%0A%0A    public long%5B%5D getBuckets(boolean reset) %7B%0A        return get().getBuckets(reset);%0A    %7D%0A%7D%0A

Add an EstimateHistogramWrapper