Examples of Options


Examples of org.apache.solr.hadoop.MapReduceIndexerTool.Options

    }


    @Override
    public int run(String[] args) throws Exception {
        Options opts = new Options();
        Integer exitCode = new MyArgumentParser().parseArgs(args, getConf(), opts);
        if (exitCode != null) {
            return exitCode;
        }
        return run(opts);
View Full Code Here

Examples of org.apache.tajo.catalog.Options

    Preconditions.checkNotNull(json);
    JsonObject jsonObject = json.getAsJsonObject();

    CatalogProtos.StoreType type = CatalogProtos.StoreType.valueOf(jsonObject.get("store").getAsString());

    Options options = null;
    if (jsonObject.get("options") != null) {
      options = context.deserialize(jsonObject.get("options"), Options.class);
    } else {
      throw new JsonParseException("Options not found in json");
View Full Code Here

Examples of org.apache.thrift.server.THsHaServer.Options

     
      //Processor
      TProcessor  processor =
        new Thrudex.Processor(new ThrudexLuceneHandler(indexRoot));
     
      Options opt = new Options();
      opt.maxWorkerThreads = threadCount;
     
      //Server
      TServer server = new THsHaServer(processor,serverSocket);
     
View Full Code Here

Examples of org.apache.torque.generator.option.Options

     */
    private void mergeInheritedOptionConfiguration(
            UnitConfiguration unitConfiguration,
            UnitConfiguration inheritedConfiguration)
    {
        Options options = unitConfiguration.getOptions();
        Options inheritedOptions = inheritedConfiguration.getOptions();
        for (Map.Entry<QualifiedName, Option> entry
            : inheritedOptions.getGlobalScope().entrySet())
        {
            QualifiedName optionName = entry.getKey();
            Option option = entry.getValue();
            if (!options.getGlobalScope().containsKey(optionName))
            {
View Full Code Here

Examples of org.asciidoctor.Options

                        "asciidoctor: FAILED: input file(s) '"
                                + asciidoctorCliOptions.getParameters()
                                + "' missing or cannot be read");
            }

            Options options = asciidoctorCliOptions.parse();
           
            if(asciidoctorCliOptions.isRequire()) {
                for (String require : asciidoctorCliOptions.getRequire()) {
                    RubyUtils.requireLibrary(JRubyRuntimeContext.get(), require);
                }
            }
           
            setVerboseLevel(asciidoctorCliOptions);
           
            String output = renderInput(asciidoctor, options, inputFiles);

            if (asciidoctorCliOptions.isVerbose()) {

                Map<String, Object> optionsMap = options.map();
                Map<String, Object> monitor = RubyHashUtil
                        .convertRubyHashMapToMap((Map<RubySymbol, Object>) optionsMap
                                .get(AsciidoctorCliOptions.MONITOR_OPTION_NAME));

                System.out.println(String.format(
View Full Code Here

Examples of org.atmosphere.wasync.Options

        final CountDownLatch latch = new CountDownLatch(1);
        final AtomicReference<Class<? extends TimeoutException>> response = new AtomicReference<Class<? extends TimeoutException>>();
        Client client = ClientFactory.getDefault().newClient();

        Options o = client.newOptionsBuilder().reconnect(false).requestTimeoutInSeconds(5).build();
        RequestBuilder request = client.newRequestBuilder()
                .method(Request.METHOD.GET)
                .uri(targetUrl + "/suspend")
                .encoder(new Encoder<String, String>() {
                    @Override
View Full Code Here

Examples of org.codemap.callhierarchy.vizualization.Options

            each.prepare();
        }
    }

    private Options initOptions() {
        Options opts = new Options();
        opts.putDouble(Options.MIN_DISPLAY_WIDTH, 1);
        opts.putDouble(Options.MAX_DISPLAY_WIDTH, 10);
        // make sure to have only one scale boolean set to true
        opts.putBoolean(Options.LINEAR_SCALE, true);
        return opts;
    }
View Full Code Here

Examples of org.dussan.vaadin.dcharts.options.Options

      DataSeries dataSeries = new DataSeries().add((Object[]) values);
      SeriesDefaults seriesDefaults = new SeriesDefaults().setRenderer(SeriesRenderers.BAR);
      Axes axes = new Axes().addAxis(new XYaxis().setRenderer(AxisRenderers.CATEGORY).setTicks(new Ticks().add((Object[]) names)));
      Highlighter highlighter = new Highlighter().setShow(false);
     
      Options options = new Options().setSeriesDefaults(seriesDefaults).setAxes(axes).setHighlighter(highlighter);
      options.setAnimate(true);
      options.setAnimateReplot(true);
     
      chart = new DCharts().setDataSeries(dataSeries).setOptions(options);
     
    } else if(CHART_TYPE_PIE_CHART.equals(type)) {
     
      DataSeries dataSeries = new DataSeries().newSeries();
      for (int i=0; i<names.length; i++) {
        dataSeries.add(names[i], values[i]);
      }
      SeriesDefaults seriesDefaults = new SeriesDefaults().setRenderer(SeriesRenderers.PIE);
     
      Options options = new Options().setSeriesDefaults(seriesDefaults);
      options.setAnimate(true);
      options.setAnimateReplot(true);
     
      Legend legend = new Legend().setShow(true).setPlacement(LegendPlacements.INSIDE);
      options.setLegend(legend);
     
      Highlighter highlighter = new Highlighter().setShow(true);
      options.setHighlighter(highlighter);
     
      chart = new DCharts().setDataSeries(dataSeries).setOptions(options);
     
    } else if (CHART_TYPE_LINE_CHART.equals(type)) {

      AxesDefaults axesDefaults = new AxesDefaults().setLabelRenderer(LabelRenderers.CANVAS);
      Axes axes = new Axes()
        .addAxis(new XYaxis().setLabel(xAxis != null ? xAxis : "").setMin(names[0]).setMax(names[values.length - 1]).setDrawMajorTickMarks(true))
        .addAxis(new XYaxis(XYaxes.Y).setLabel(yAxis != null ? yAxis : "").setDrawMajorTickMarks(true));
      Options options = new Options().setAxesDefaults(axesDefaults).setAxes(axes);
      DataSeries dataSeries = new DataSeries().newSeries();
      for (int i=0; i<names.length; i++) {
      
//        if (parseLong(names[i]) != null) {
//          dataSeries.add(parseLong(names[i]), values[i]);
//        } else if (parseDouble(names[i]) != null) {
//          dataSeries.add(parseDouble(names[i]), values[i]);
//        } else {
//          dataSeries.add(names[i], values[i]);
//        }
       
        dataSeries.add(names[i], values[i]);
       
      }
     
      Series series = new Series().addSeries(
              new XYseries().setShowLine(true).setMarkerOptions(new MarkerRenderer().setShadow(true).setSize(7).setStyle(MarkerStyles.CIRCLE)));
      options.setSeries(series);
     
      options.setAnimate(true);
      options.setAnimateReplot(true);
     
      Highlighter highlighter = new Highlighter().setShow(true);
      options.setHighlighter(highlighter);
     
      chart = new DCharts().setDataSeries(dataSeries).setOptions(options);
     
    } else if (CHART_TYPE_LIST.equals(type)) {
     
View Full Code Here

Examples of org.foray.app.Options

     */
    public void run() throws FOrayException {
        this.sessionConfig = new SessionConfig();
        this.outputConfig = new OutputConfig();
        if (this.task.getUserConfig() != null) {
            new Options(this.sessionConfig, this.outputConfig, this.task.getUserConfig());
        }

        setBaseDirectory();

        this.actioncount = 0;
View Full Code Here

Examples of org.freeplane.main.application.CommandLineParser.Options

    controller.selectModeForBuild(modeController);
    Compat.macMenuChanges();
    new UserPropertiesUpdater().importOldDefaultStyle();
    EventQueue.invokeLater(new Runnable() {
      public void run() {
          final Options options = CommandLineParser.parse(args);
        viewController.init(Controller.getCurrentController());
        splash.toBack();
        final Frame frame = viewController.getFrame();
        final int extendedState = frame.getExtendedState();
        Container contentPane = viewController.getContentPane();
        contentPane.setVisible(false);
        splash.dispose();
        splash = null;
        frame.setVisible(true);
        if (extendedState != frame.getExtendedState()) {
          frame.setExtendedState(extendedState);
        }
        loadMaps(options.getFilesToOpenAsArray());
        focusCurrentView();
        viewController.getContentPane().setVisible(true);
        frame.toFront();
        startupFinished = true;
            System.setProperty("nonInteractive", Boolean.toString(options.isNonInteractive()));
            try {
                    Thread.sleep(1000);
                }
                catch (InterruptedException e) {
                    e.printStackTrace();
                }
                MenuUtils.executeMenuItems(options.getMenuItemsToExecute());
            }

      private void focusCurrentView() {
        final MapView currentMapView = (MapView) Controller.getCurrentController().getMapViewManager().getMapViewComponent();
        if(currentMapView != null){
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.