public MsgRuntime(String[] args, String name) { this.gm = new GraphManager(name); this.args = args != null ? args : new String[0]; }
public static GraphManager cloneAll(GraphManager m) { GraphManager clone = new GraphManager(m.stageStateData, m.recordTypeData, m.name); //register each stage int i = m.stageIdToStage.length; while (--i>=0) { PronghornStage stage = m.stageIdToStage[i]; if (null!=stage) { copyStage(m, clone, stage); copyNotasForStage(m, clone, stage); } } clone.stageCounter.set(m.stageCounter.get()); return clone; }
public static void main(String[] args) { String home = System.getenv().get("HOME"); String filesPath = MainArgs.getOptArg("files", "-f", args, (null==home?"~":home)+"/www"); String host = MainArgs.getOptArg("host", "-h", args, null); int port = Integer.valueOf(MainArgs.getOptArg("port", "-p", args, "8080")); GraphManager gm = new GraphManager(); populateGraph(gm, host, port, filesPath); gm.enableTelemetry(8089); StageScheduler.defaultScheduler(gm).startup(); }
public static GraphManager cloneStagesWithNotaKeyValue(GraphManager m, Object key, Object value) { GraphManager clone = new GraphManager( new GraphManagerStageStateData(), m.recordTypeData, m.name); //register each stage int i = m.stageIdToStage.length; while (--i>=0) { PronghornStage stage = m.stageIdToStage[i]; if (null!=stage) { //copy this stage if it has the required key if (value.equals(getNota(m, stage, key, null))) { copyStage(m, clone, stage); copyNotasForStage(m, clone, stage); } } } return clone; }
public static GraphManager cloneStagesWithNotaKey(GraphManager m, Object key) { GraphManager clone = new GraphManager( new GraphManagerStageStateData(), m.recordTypeData, m.name); //register each stage int i = m.stageIdToStage.length; while (--i>=0) { PronghornStage stage = m.stageIdToStage[i]; if (null!=stage) { //copy this stage if it has the required key if (m != getNota(m, stage, key, m)) { copyStage(m, clone, stage); copyNotasForStage(m, clone, stage); } } } return clone; }
public static File writeTapeToFileUsingPipe(Pipe<RawDataSchema> inputPipe, byte[] testData) throws IOException, FileNotFoundException { GraphManager gm = new GraphManager(); File f2 = File.createTempFile("fileTapeWriteTest", "dat"); f2.deleteOnExit(); new ByteArrayProducerStage(gm, testData, inputPipe); new TapeWriteStage(gm, inputPipe, new RandomAccessFile(f2,"rw")); GraphManager.enableBatching(gm); ThreadPerStageScheduler scheduler = new ThreadPerStageScheduler(gm); scheduler.startup(); scheduler.awaitTermination(3, TimeUnit.SECONDS); return f2; }
GraphManager gm = new GraphManager();
public static void main(String[] args) { String inputPathString = "<some file name>"; GraphManager gm = new GraphManager(); Pipe<RawDataSchema> output = RawDataSchema.instance.newPipe(10, 2000); new FileBlobReadStage(gm, output, inputPathString); ParseInput done = new ParseInput(gm, output); StageScheduler s = StageScheduler.defaultScheduler(gm); s.startup(); GraphManager.blockUntilStageBeginsShutdown(gm, done); }
GraphManager gm = new GraphManager(); Pipe<RawDataSchema> loadedDataPipe = new Pipe<RawDataSchema>(config.grow2x()); new TapeReadStage(gm, new RandomAccessFile(tapeFile,"rw"), loadedDataPipe);
GraphManager gm = new GraphManager();
f2.deleteOnExit(); GraphManager gm = new GraphManager();
GraphManager gm = new GraphManager();
GraphManager gm = new GraphManager();
GraphManager gm = new GraphManager(); PipeConfig<HistogramSchema> pipeConfigHist = HistogramSchema.instance.newPipeConfig(4,1<<19); PipeConfig<ProbabilitySchema> pipeConfigProb = ProbabilitySchema.instance.newPipeConfig(4,1<<19);
GraphManager gm = new GraphManager();
int inLength = 10; GraphManager gm = new GraphManager();
private static void speedTestPackUnpacke() { GraphManager gm = new GraphManager();
@Test public void notaTests() { final GraphManager gm = new GraphManager();
@Test public void constructionOfSimpleGraph() { GraphManager gm = new GraphManager();
@Test public void constructionOfForkedGraph() { GraphManager gm = new GraphManager();