Examples of run()


Examples of org.openstreetmap.osmosis.core.task.v0_6.RunnableChangeSource.run()

    // Send the replication data downstream but don't call any lifecycle
    // methods on the change sink because we're managing those separately.
    if (chunkFile != null) {
      RunnableChangeSource changeReader = new XmlChangeReader(chunkFile, true, CompressionMethod.GZip);
      changeReader.setChangeSink(noLifecycleChangeSink);
      changeReader.run();
    }
   
    changeSink.complete();
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfDecoder.run()

      // than there are workers to ensure there is another blob
      // immediately ready for processing when a worker thread completes.
      // The main thread is responsible for splitting blobs from the
      // request stream, and sending decoded entities to the sink.
      PbfDecoder pbfDecoder = new PbfDecoder(streamSplitter, executorService, workers + 1, sink);
      pbfDecoder.run();

      sink.complete();

    } catch (IOException e) {
      throw new OsmosisRuntimeException("Unable to read PBF file " + file + ".", e);
View Full Code Here

Examples of org.openstreetmap.osmosis.xml.v0_6.XmlChangeReader.run()

    // Send the replication data downstream but don't call any lifecycle
    // methods on the change sink because we're managing those separately.
    if (chunkFile != null) {
      RunnableChangeSource changeReader = new XmlChangeReader(chunkFile, true, CompressionMethod.GZip);
      changeReader.setChangeSink(noLifecycleChangeSink);
      changeReader.run();
    }
   
    changeSink.complete();
  }
View Full Code Here

Examples of org.opentripplanner.graph_builder.GraphBuilderTask.run()

        OTPConfigurator configurator = new OTPConfigurator(params);
       
        // start graph builder, if asked for
        GraphBuilderTask graphBuilder = configurator.builderFromParameters();
        if (graphBuilder != null) {
            graphBuilder.run();
            // Inform configurator which graph is to be used for in-memory handoff.
            if (params.inMemory || params.preFlight) {
                graphBuilder.getGraph().index(new DefaultStreetVertexIndexFactory());
                configurator.makeGraphService(graphBuilder.getGraph());
            }
View Full Code Here

Examples of org.opentripplanner.routing.edgetype.factory.GTFSPatternHopFactory.run()

    public void setUp() throws Exception {
        GtfsContext context = GtfsLibrary.readGtfs(new File(ConstantsForTests.FAKE_GTFS));
        options = new RoutingRequest();
        graph = new Graph();
        GTFSPatternHopFactory factory = new GTFSPatternHopFactory(context);
        factory.run(graph);
        graph.putService(CalendarServiceData.class, GtfsLibrary.createCalendarServiceData(context.getDao()));
        graph.index(new DefaultStreetVertexIndexFactory());
    }

    public void testStopAlertPatch() {
View Full Code Here

Examples of org.opentripplanner.routing.edgetype.factory.TransferGraphLinker.run()

            portlandContext = GtfsLibrary.readGtfs(new File(ConstantsForTests.PORTLAND_GTFS));
            portlandGraph = new Graph();
            GTFSPatternHopFactory factory = new GTFSPatternHopFactory(portlandContext);
            factory.run(portlandGraph);
            TransferGraphLinker linker = new TransferGraphLinker(portlandGraph);
            linker.run();
            // TODO: eliminate GTFSContext
            // this is now making a duplicate calendarservicedata but it's oh so practical
            portlandGraph.putService(CalendarServiceData.class,
                    GtfsLibrary.createCalendarServiceData(portlandContext.getDao()));
        } catch (Exception e) {
View Full Code Here

Examples of org.opentripplanner.visualizer.GraphVisualizer.run()

        }
       
        // start visualizer, if asked for
        GraphVisualizer graphVisualizer = configurator.visualizerFromParameters();
        if (graphVisualizer != null) {
            graphVisualizer.run();
        }
       
        // start web server, if asked for
        GrizzlyServer grizzlyServer = configurator.serverFromParameters();
        if (grizzlyServer != null) {
View Full Code Here

Examples of org.owasp.webscarab.ui.swing.Lite.run()

                } catch (Exception e) {
                    System.err.println("Error loading GUI: " + e.getMessage());
                    e.printStackTrace();
                    System.exit(1);
                }
                uif.run();
            }
        } catch (Throwable t) {
            t.printStackTrace();
            JOptionPane.showMessageDialog(null, t, "Error!", JOptionPane.ERROR_MESSAGE);
        }
View Full Code Here

Examples of org.owasp.webscarab.ui.swing.UIFramework.run()

                } catch (Exception e) {
                    System.err.println("Error loading GUI: " + e.getMessage());
                    e.printStackTrace();
                    System.exit(1);
                }
                uif.run();
            } else {
                final Lite uif = new Lite(framework);
                ExceptionHandler.setParentComponent(uif);
                loadLitePlugins(framework, uif);
                try {
View Full Code Here

Examples of org.owasp.webscarab.ui.swing.WebScarabUI.run()

                    else
                          ui.createTemporarySession();

                  }
                });
                ui.run();
            } catch (Exception e) {
                System.err.println("Error loading GUI: " + e.getMessage());
                e.printStackTrace();
                System.exit(1);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.