aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject aurora git commit: Add a StatsProvider binding to UpdateStoreBenchmarks.
Date Fri, 08 May 2015 18:32:05 GMT
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 <wfarner@apache.org>
Authored: Fri May 8 11:31:31 2015 -0700
Committer: Bill Farner <wfarner@apache.org>
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());


Mime
View raw message