Return-Path: X-Original-To: apmail-aurora-commits-archive@minotaur.apache.org Delivered-To: apmail-aurora-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9EAEC17816 for ; Fri, 8 May 2015 18:32:05 +0000 (UTC) Received: (qmail 6252 invoked by uid 500); 8 May 2015 18:32:05 -0000 Delivered-To: apmail-aurora-commits-archive@aurora.apache.org Received: (qmail 6221 invoked by uid 500); 8 May 2015 18:32:05 -0000 Mailing-List: contact commits-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list commits@aurora.apache.org Received: (qmail 6212 invoked by uid 99); 8 May 2015 18:32:05 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 18:32:05 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 386FDE17F2; Fri, 8 May 2015 18:32:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wfarner@apache.org To: commits@aurora.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: aurora git commit: Add a StatsProvider binding to UpdateStoreBenchmarks. Date: Fri, 8 May 2015 18:32:05 +0000 (UTC) Repository: aurora Updated Branches: refs/heads/master 815718199 -> 8d8d75ecf Add a StatsProvider binding to UpdateStoreBenchmarks. Bugs closed: AURORA-1315 Reviewed at https://reviews.apache.org/r/33991/ Project: http://git-wip-us.apache.org/repos/asf/aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/8d8d75ec Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/8d8d75ec Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/8d8d75ec Branch: refs/heads/master Commit: 8d8d75ecf46cbaf352870a222111efda903a7c8d Parents: 8157181 Author: Bill Farner Authored: Fri May 8 11:31:31 2015 -0700 Committer: Bill Farner Committed: Fri May 8 11:31:31 2015 -0700 ---------------------------------------------------------------------- .../java/org/apache/aurora/benchmark/UpdateStoreBenchmarks.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aurora/blob/8d8d75ec/src/jmh/java/org/apache/aurora/benchmark/UpdateStoreBenchmarks.java ---------------------------------------------------------------------- diff --git a/src/jmh/java/org/apache/aurora/benchmark/UpdateStoreBenchmarks.java b/src/jmh/java/org/apache/aurora/benchmark/UpdateStoreBenchmarks.java index 4cc53d8..e526929 100644 --- a/src/jmh/java/org/apache/aurora/benchmark/UpdateStoreBenchmarks.java +++ b/src/jmh/java/org/apache/aurora/benchmark/UpdateStoreBenchmarks.java @@ -22,8 +22,10 @@ import com.google.common.collect.ImmutableSet; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; +import com.twitter.common.stats.StatsProvider; import com.twitter.common.util.Clock; +import org.apache.aurora.benchmark.fakes.FakeStatsProvider; import org.apache.aurora.gen.ExecutorConfig; import org.apache.aurora.gen.InstanceTaskConfig; import org.apache.aurora.gen.JobInstanceUpdateEvent; @@ -86,6 +88,7 @@ public class UpdateStoreBenchmarks { @Override protected void configure() { bind(Clock.class).toInstance(Clock.SYSTEM_CLOCK); + bind(StatsProvider.class).toInstance(new FakeStatsProvider()); } }, DbModule.testModule());