Package com.flaptor.wizard

Examples of com.flaptor.wizard.InputPageElement


          .add(new OptionPageElement("Install crawler?",null,"installCrawler", "0", new String[] {"yes, in this machine""yes, in a remote machine", "no"}))
          .add(new OptionPageElement("Install cacheServer?",null,"installCacheServer", "0", new String[] {"yes, in this machine""yes, in a remote machine", "no"}))
          .add(new OptionPageElement("Install monitorWeb?",null,"installMonitorWeb", "0", new String[] {"yes, in this machine""yes, in a remote machine", "no"}));      
    searcherInstallRemote
      .add(new PageElement("Searcher remote configuration", "Please tell us where you will install the searcher."))
          .add(new InputPageElement("host", null, "host", "localhost"))
          .add(new InputPageElement("base port", null, "basePort", String.valueOf(PortUtil.getBasePort())))
      .add(new InputPageElement("base dir", null, "baseDir", DEFAULT_INSTALLATION_DIR));
    indexerInstallRemote
      .add(new PageElement("Indexer remote configuration", "Please tell us where you will install the indexer."))
          .add(new InputPageElement("host", null, "host", "localhost"))
          .add(new InputPageElement("base port", null, "basePort", String.valueOf(PortUtil.getBasePort())))
      .add(new InputPageElement("base dir", null, "baseDir", DEFAULT_INSTALLATION_DIR));         
    crawlerInstallRemote
      .add(new PageElement("Crawler remote configuration", "Please tell us where you will install the crawler."))
          .add(new InputPageElement("host", null, "host", "localhost"))
          .add(new InputPageElement("base port", null, "basePort", String.valueOf(PortUtil.getBasePort())))
      .add(new InputPageElement("base dir", null, "baseDir", DEFAULT_INSTALLATION_DIR));
    cacheServerInstallRemote
      .add(new PageElement("Cache Server remote configuration", "Please tell us where you will install the crawler."))
        .add(new InputPageElement("host", null, "host", "localhost"))
        .add(new InputPageElement("base port", null, "basePort", String.valueOf(PortUtil.getBasePort())))
      .add(new InputPageElement("base dir", null, "baseDir", DEFAULT_INSTALLATION_DIR));
    clusteringWebInstallRemote
      .add(new PageElement("Monitor Web remote configuration", "Please tell us where you will install the monitor web."))
          .add(new InputPageElement("host", null, "host", "localhost"))
          .add(new InputPageElement("base port", null, "basePort", String.valueOf(PortUtil.getBasePort())))
      .add(new InputPageElement("base dir", null, "baseDir", DEFAULT_INSTALLATION_DIR));
//        searcherInstall
//          .add(new PageElement("Searcher configuration"));
//        indexerInstall
//          .add(new PageElement("Indexer configuration"));
//        crawlerInstall
//          .add(new PageElement("Crawler configuration"));
        cacheServerInstall
      .add(new PageElement("Cache Server configuration"))
        .add(new InputPageElement("External host name", "users will access this through http, cannot be localhost", "host", "<replace>"));
        thisMachinesName
          .add(new InputPageElement("What's the name of this machine?", "Enter the machine name or IP address", "localhostName", "<replace>"));
        copySSH
        .add(new OptionPageElement(
        "How do you wish to copy files to the remote machines?",
        "You need to have SSH access without password to let the installer copy the files",
        "method",
        "0",
        new String[]{"let the installer copy them via SSH", "give me some .tgz that I'll copy and decompress myself"}));
      dirPortOptions
        .add(new PageElement("Local installation port and path"))
          .add(new InputPageElement("Base port", "Hounder uses a range of ports starting in one base port", "basePort", String.valueOf(PortUtil.getBasePort())))
          .add(new InputPageElement("Base dir", "This is where Hounder will be installed in this machine. If it exists, it will be overwritten.", "path",  installDir));   
//        installBaseOptions
//            .add(new InputPageElement("Local installation path", "This is where Hounder will be installed in this machine. If it exists, it will be overwritten.", "path",  installDir));
           

        thisMachineAllInstall.setPreNextCallback(new Runnable() {
View Full Code Here


        String seeds = "http://www.flaptor.com\nhttp://www.cnn.com";
         try {seeds = IOUtil.readAll(new FileReader(seedsFile));} catch (IOException e) {}//should exist
        pageSeedsManual
          .add(new TextPageElement("Enter seed URLs", "one per line","seeds", seeds));
        pageSeedsFile
          .add(new InputPageElement("Enter pagedb.seeds file", "pagedb.seeds is a file containing a URL per line","seeds", seedsFile.getAbsolutePath()));
       
        hotspotsType
      .add(new OptionPageElement(
        "Enter hotspots regular expressions",
            "Hotspots determine the documents that will be considered by the crawler. They are defined by regular expressions.",
            "hotspotsType",
            "0",
            new String[] {"Use a hotspots.regex file", "Enter hotspots regular expressions manually"}
            ));
      File hotspotsRegexFile = new File(crawlerDir, "conf/hotspots.regex");
      String hotspots = "*";
         try {hotspots = IOUtil.readAll(new FileReader(hotspotsRegexFile)); } catch (IOException e) {}//should exist
         hotspotsManual
        .add(new TextPageElement("Enter hotspots regex", "one per line","hotspots", hotspots));
         hotspotsFile
        .add(new InputPageElement("Enter hotspots.regex file", "hotspots.regex is a file containing a regular expression per line","hotspots", hotspotsRegexFile.getAbsolutePath()));
       
        configuring
          .add(new PageElement("Configuring..."));
       
       
View Full Code Here

TOP

Related Classes of com.flaptor.wizard.InputPageElement

Copyright © 2018 www.massapicom. 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.