private static int dotEstimate(GraphManager graphManager) { return (300*GraphManager.countStages(graphManager))+ (400*GraphManager.allPipes(graphManager).length); }
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); } }; } } }
Pipe[] pipes = GraphManager.allPipes(graphManager); Arrays.sort(pipes, joinFirstComparator); if (countStages>logLimit) {
Pipe[] pipes = GraphManager.allPipes(graphManager); Arrays.sort(pipes, GraphManager.joinFirstComparator(graphManager)); if (countStages>logLimit) {
if (toRecieve[r]>0) { logger.info("still need {} for user {} ",toRecieve[r],r); for(Pipe p : GraphManager.allPipes(graphManager)) { if (Pipe.contentRemaining(p)>0) { logger.info("found pipe with data {} ",p);