@Override public int compare(PronghornStage[] o1, PronghornStage[] o2) { //keep all the montiors on one end to merge them last boolean mon1 = o1!=null && GraphManager.hasNota(graphManager, o1[0].stageId, GraphManager.MONITOR); boolean mon2 = o2!=null && GraphManager.hasNota(graphManager, o2[0].stageId, GraphManager.MONITOR); if (mon1 && mon2) { mon1 = false; mon2 = false; } int len1 = null==o1 ? -1 : mon1 ? Integer.MAX_VALUE : o1.length; int len2 = null==o2 ? -1 : mon2 ? Integer.MAX_VALUE : o2.length; return (len2>len1)?1:(len2<len1)?-1:0; }
private static boolean isProducer(final GraphManager graphManager, PronghornStage pronghornStage) { return GraphManager.hasNota(graphManager, pronghornStage.stageId, GraphManager.PRODUCER) || (0 == GraphManager.getInputPipeCount(graphManager, pronghornStage)); }
if ( GraphManager.hasNota(graphManager, stageArrays[idx][0].stageId, GraphManager.MONITOR) || GraphManager.hasNota(graphManager, stageArrays[idx-1][0].stageId, GraphManager.MONITOR)) { if ( GraphManager.hasNota(graphManager, stageArrays[idx][0].stageId, GraphManager.ISOLATE) || GraphManager.hasNota(graphManager, stageArrays[idx-1][0].stageId, GraphManager.ISOLATE)) {
assert(stageArrays[j].length>0); if (GraphManager.hasNota(graphManager, stageArrays[j][0].stageId, GraphManager.MONITOR)) { idxThreadCheckingForLongRuns=j;
if (!GraphManager.hasNota(graphManager, this.stageId, GraphManager.MONITOR) ) { System.out.println("wrote bytes "+len);
private void scanForPipesWithData(GraphManager g, String label) { Pipe<?>[] allPipes = GraphManager.allPipes(g); int a = allPipes.length; while (--a >= 0) { Pipe p = allPipes[a]; if (null != p) { PronghornStage stagePro = GraphManager.getRingProducer(g, p.id); PronghornStage stageCon = GraphManager.getRingConsumer(g, p.id); if (!GraphManager.hasNota(g, stagePro.stageId, GraphManager.MONITOR)) { if (!Pipe.isEmpty(p)) { System.out.println(label+p+" "+stagePro+"->"+stageCon); } }; } } }
if ((inC1 == 0) || (GraphManager.hasNota(gm, stageId, GraphManager.PRODUCER))) {
PronghornStage[] pronghornStages) { if (GraphManager.hasNota(graphManager, consumerId, GraphManager.TRIGGER)) { return -1;
if (GraphManager.hasNota(graphManager, producerId, GraphManager.ROUTER_HUB)) { return false; if (GraphManager.hasNota(graphManager, consumerId, GraphManager.ROUTER_HUB)) { if (GraphManager.hasNota(graphManager, producerId, GraphManager.ISOLATE)) { return false; if (GraphManager.hasNota(graphManager, consumerId, GraphManager.ISOLATE)) { return false; if (GraphManager.hasNota(graphManager, producerId, GraphManager.LOAD_BALANCER) && (GraphManager.getOutputPipeCount(graphManager, producerId)>2) ) {
if (!GraphManager.hasNota(graphManager, this.stageId, GraphManager.MONITOR) ) {
while (--i>=0) { if (null!=getStage(gm,i)) { if (GraphManager.monitorAll || (!GraphManager.hasNota(gm, i, GraphManager.MONITOR))) { long elapsedAtPercentile = ElapsedTimeRecorder.elapsedAtPercentile(gm.stageElapsed[i], percentile); if (debug) { if (GraphManager.monitorAll || (!GraphManager.hasNota(gm, i, GraphManager.MONITOR))) { if (ElapsedTimeRecorder.totalCount(gm.stageElapsed[i])>significantSampleCount) { if (ElapsedTimeRecorder.elapsedAtPercentile(gm.stageElapsed[i], percentile)>limit) {
(GraphManager.hasNota(graphManager, stage.stageId, GraphManager.PRODUCER)) && (0!=GraphManager.getInputPipeCount(graphManager, stage.stageId))//did these above already hasNoInternalInputs(graphManager, stage, rootsTable, lastKnownRoot) && (!GraphManager.hasNota(graphManager, stage.stageId, GraphManager.PRODUCER)) //did these above already && (0!=GraphManager.getInputPipeCount(graphManager, stage.stageId))//did these above already
if (!GraphManager.hasNota(graphManager, this.stageId, GraphManager.MONITOR) ) {
if ( GraphManager.hasNota(graphManager, consumerId, GraphManager.LOAD_MERGE)) {