aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject aurora git commit: Adding TierManager binding into JMH benchmarks.
Date Tue, 25 Aug 2015 23:14:03 GMT
Repository: aurora
Updated Branches:
  refs/heads/master 506d0cdbc -> 96a086c66


Adding TierManager binding into JMH benchmarks.

Reviewed at https://reviews.apache.org/r/37774/


Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/96a086c6
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/96a086c6
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/96a086c6

Branch: refs/heads/master
Commit: 96a086c660c5e8d2e3782b593c92d3e4cd93bff9
Parents: 506d0cd
Author: Maxim Khutornenko <maxim@apache.org>
Authored: Tue Aug 25 16:12:52 2015 -0700
Committer: Maxim Khutornenko <maxim@apache.org>
Committed: Tue Aug 25 16:12:52 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/aurora/benchmark/SchedulingBenchmarks.java   | 4 ++++
 .../java/org/apache/aurora/benchmark/StatusUpdateBenchmark.java  | 3 +++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/96a086c6/src/jmh/java/org/apache/aurora/benchmark/SchedulingBenchmarks.java
----------------------------------------------------------------------
diff --git a/src/jmh/java/org/apache/aurora/benchmark/SchedulingBenchmarks.java b/src/jmh/java/org/apache/aurora/benchmark/SchedulingBenchmarks.java
index e41b299..96a9fda 100644
--- a/src/jmh/java/org/apache/aurora/benchmark/SchedulingBenchmarks.java
+++ b/src/jmh/java/org/apache/aurora/benchmark/SchedulingBenchmarks.java
@@ -35,6 +35,7 @@ import org.apache.aurora.benchmark.fakes.FakeRescheduleCalculator;
 import org.apache.aurora.benchmark.fakes.FakeStatsProvider;
 import org.apache.aurora.scheduler.HostOffer;
 import org.apache.aurora.scheduler.TaskIdGenerator;
+import org.apache.aurora.scheduler.TierManager;
 import org.apache.aurora.scheduler.async.AsyncModule;
 import org.apache.aurora.scheduler.async.DelayExecutor;
 import org.apache.aurora.scheduler.events.EventSink;
@@ -131,6 +132,9 @@ public class SchedulingBenchmarks {
                   new BiCache.BiCacheSettings(DELAY_FOREVER, ""));
               bind(TaskScheduler.class).to(TaskScheduler.TaskSchedulerImpl.class);
               bind(TaskScheduler.TaskSchedulerImpl.class).in(Singleton.class);
+              bind(TierManager.class).to(TierManager.TierManagerImpl.class);
+              bind(TierManager.TierManagerImpl.class).in(Singleton.class);
+              expose(TierManager.class);
               expose(TaskScheduler.class);
               expose(OfferManager.class);
             }

http://git-wip-us.apache.org/repos/asf/aurora/blob/96a086c6/src/jmh/java/org/apache/aurora/benchmark/StatusUpdateBenchmark.java
----------------------------------------------------------------------
diff --git a/src/jmh/java/org/apache/aurora/benchmark/StatusUpdateBenchmark.java b/src/jmh/java/org/apache/aurora/benchmark/StatusUpdateBenchmark.java
index 425d27c..2d7c43b 100644
--- a/src/jmh/java/org/apache/aurora/benchmark/StatusUpdateBenchmark.java
+++ b/src/jmh/java/org/apache/aurora/benchmark/StatusUpdateBenchmark.java
@@ -49,6 +49,7 @@ import org.apache.aurora.gen.ScheduleStatus;
 import org.apache.aurora.scheduler.TaskIdGenerator;
 import org.apache.aurora.scheduler.TaskStatusHandler;
 import org.apache.aurora.scheduler.TaskStatusHandlerImpl;
+import org.apache.aurora.scheduler.TierManager;
 import org.apache.aurora.scheduler.base.AsyncUtil;
 import org.apache.aurora.scheduler.events.EventSink;
 import org.apache.aurora.scheduler.events.PubsubEvent;
@@ -247,6 +248,8 @@ public class StatusUpdateBenchmark {
                 .toInstance(1000);
             bind(TaskStatusHandler.class).to(TaskStatusHandlerImpl.class);
             bind(TaskStatusHandlerImpl.class).in(Singleton.class);
+            bind(TierManager.class).to(TierManager.TierManagerImpl.class);
+            bind(TierManager.TierManagerImpl.class).in(Singleton.class);
           }
         }
     );


Mime
View raw message