public ThreadPerStageScheduler(GraphManager graphManager) { super(graphManager); recordTime = GraphManager.isTelemetryEnabled(graphManager); }
public NonThreadScheduler(GraphManager graphManager, PronghornStage[] stages, String name, boolean isInLargerScheduler) { super(graphManager); this.stages = stages; this.graphManager = graphManager; this.name = name; this.inLargerScheduler = isInLargerScheduler; recordTime = GraphManager.isTelemetryEnabled(graphManager); if (recordTime) { didWorkMonitor = new DidWorkMonitor(); } }
public NonThreadScheduler(GraphManager graphManager, PronghornStage[] stages, String name) { super(graphManager); this.stages = stages; this.graphManager = graphManager; this.name = name; this.inLargerScheduler = false; recordTime = GraphManager.isTelemetryEnabled(graphManager); if (recordTime) { didWorkMonitor = new DidWorkMonitor(); } }
public NonThreadScheduler(GraphManager graphManager) { super(graphManager); this.stages = GraphManager.allStages(graphManager); this.graphManager = graphManager; this.inLargerScheduler = false; recordTime = GraphManager.isTelemetryEnabled(graphManager); if (recordTime) { didWorkMonitor = new DidWorkMonitor(); } }
public static void playScript(ScriptedNonThreadScheduler that) throws InterruptedException { assert(null != that.shutdownRequested) : "startup() must be called before run."; checkForModifications(that); //play the script int scheduleIdx = 0; int[] script = that.schedule.script; while (scheduleIdx < script.length) { waitBeforeRun(that, System.nanoTime()); scheduleIdx = that.runBlock(scheduleIdx, script, that.stages, GraphManager.isTelemetryEnabled(that.graphManager)); } checkForLongRun(that); }
if (GraphManager.isTelemetryEnabled(graphManager)) { start = System.nanoTime(); clearCallerId(); if (GraphManager.isTelemetryEnabled(graphManager)) { final long now = System.nanoTime(); long duration = now-start;