亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? heritrix.java

?? 高性能分詞算法
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
                addJob(createCrawlJob(this.jobHandler, order, name));        } catch (InvalidAttributeValueException e) {            FatalConfigurationException fce = new FatalConfigurationException(                "Converted InvalidAttributeValueException on " +                order.getAbsolutePath() + ": " + e.getMessage());            fce.setStackTrace(e.getStackTrace());        }        return addedJob != null? addedJob.getUID(): null;    }        /**     * Undo jar file and use as basis for a new job.     * @param jarFile Pointer to file that holds jar.     * @param name Name to use for new job.     * @param description      * @param seeds      * @return Message.     * @throws IOException     * @throws FatalConfigurationException     */    protected String addCrawlJobBasedonJar(final File jarFile,            final String name, final String description, final String seeds)    throws IOException, FatalConfigurationException {        if (jarFile == null || !jarFile.exists()) {            throw new FileNotFoundException(jarFile.getAbsolutePath());        }        // Create a directory with a tmp name.  Do it by first creating file,        // removing it, then creating the directory. There is a hole during        // which the OS may put a file of same exact name in our way but        // unlikely.        File dir = File.createTempFile(Heritrix.class.getName(), ".expandedjar",            TMPDIR);        dir.delete();        dir.mkdir();        try {            org.archive.crawler.util.IoUtils.unzip(jarFile, dir);            // Expect to find an order file at least.            File orderFile = new File(dir, "order.xml");            if (!orderFile.exists()) {                throw new IOException("Missing order: " +                    orderFile.getAbsolutePath());            }            CrawlJob job =                createCrawlJobBasedOn(orderFile, name, description, seeds);            // Copy into place any seeds and settings directories before we            // add job to Heritrix to crawl.            File seedsFile = new File(dir, "seeds.txt");            if (seedsFile.exists()) {                FileUtils.copyFiles(seedsFile, new File(job.getDirectory(),                    seedsFile.getName()));            }            addCrawlJob(job);            return job.getUID();         } finally {             // After job has been added, no more need of expanded content.             // (Let the caller be responsible for cleanup of jar. Sometimes             // its should be deleted -- when its a local copy of a jar pulled             // across the net -- wherease other times, if its a jar passed             // in w/ a 'file' scheme, it shouldn't be deleted.             org.archive.util.FileUtils.deleteDir(dir);         }    }        public String addCrawlJobBasedOn(String jobUidOrProfile,            String name, String description, String seeds) {        try {            CrawlJob cj = getJobHandler().getJob(jobUidOrProfile);            if (cj == null) {                throw new InvalidAttributeValueException(jobUidOrProfile +                    " is not a job UID or profile name (Job UIDs are " +                    " usually the 14 digit date portion of job name).");            }            CrawlJob job = addCrawlJobBasedOn(                cj.getSettingsHandler().getOrderFile(), name, description,                    seeds);            return job.getUID();        } catch (Exception e) {            e.printStackTrace();            return "Exception on " + jobUidOrProfile + ": " + e.getMessage();        }     }        protected CrawlJob addCrawlJobBasedOn(final File orderFile,        final String name, final String description, final String seeds)    throws FatalConfigurationException {        return addCrawlJob(createCrawlJobBasedOn(orderFile, name, description,                seeds));    }        protected CrawlJob createCrawlJobBasedOn(final File orderFile,            final String name, final String description, final String seeds)    throws FatalConfigurationException {        CrawlJob job = getJobHandler().newJob(orderFile, name, description,                seeds);        return CrawlJobHandler.ensureNewJobWritten(job, name, description);    }        protected CrawlJob addCrawlJob(final CrawlJob job) {        return getJobHandler().addJob(job);    }        public void startCrawling() {        if (getJobHandler() == null) {            throw new NullPointerException("Heritrix jobhandler is null.");        }        getJobHandler().startCrawler();    }    public void stopCrawling() {        if (getJobHandler() == null) {            throw new NullPointerException("Heritrix jobhandler is null.");        }        getJobHandler().stopCrawler();    }        /**     * Get the heritrix version.     *     * @return The heritrix version.  May be null.     */    public static String getVersion() {        return System.getProperty("heritrix.version");    }    /**     * Get the job handler     *     * @return The CrawlJobHandler being used.     */    public CrawlJobHandler getJobHandler() {        return this.jobHandler;    }    /**     * Get the configuration directory.     * @return The conf directory under HERITRIX_HOME or null if none can     * be found.     * @throws IOException     */    public static File getConfdir()    throws IOException {        return getConfdir(true);    }    /**     * Get the configuration directory.     * @param fail Throw IOE if can't find directory if true, else just     * return null.     * @return The conf directory under HERITRIX_HOME or null (or an IOE) if     * can't be found.     * @throws IOException     */    public static File getConfdir(final boolean fail)    throws IOException {        final String key = "heritrix.conf";        // Look to see if heritrix.conf property passed on the cmd-line.        String tmp = System.getProperty(key);        // if not fall back to default $HERITIX_HOME/conf        if (tmp == null || tmp.length() == 0) {            return getSubDir("conf", fail);        }        File dir = new File(tmp);        if (!dir.exists()) {            if (fail) {                throw new IOException("Cannot find conf dir: " + tmp);            } else {                logger.log(Level.WARNING, "Specified " + key +                    " dir does not exist.  Falling back on default");            }            dir = getSubDir("conf", fail);        }        return dir;    }    /**     * @return Returns the httpServer. May be null if one was not started.     */    public static SimpleHttpServer getHttpServer() {        return Heritrix.httpServer;    }    /**     * @throws IOException     * @return Returns the directory under which reside the WAR files     * we're to load into the servlet container.     */    public static File getWarsdir()    throws IOException {        return getSubDir("webapps");    }    /**     * Prepars for program shutdown. This method does it's best to prepare the     * program so that it can exit normally. It will kill the httpServer and     * terminate any running job.<br>     * It is advisible to wait a few (~1000) millisec after calling this method     * and before calling performHeritrixShutDown() to allow as many threads as     * possible to finish what they are doing.     */    public static void prepareHeritrixShutDown() {        // Stop and destroy all running Heritrix instances.        // Get array of the key set to avoid CCEs for case where call to        // destroy does a remove of an instance from Heritrix.instances.        final Object [] keys = Heritrix.instances.keySet().toArray();        for (int i = 0; i < keys.length; i++) {            ((Heritrix)Heritrix.instances.get(keys[i])).destroy();        }                try {            deregisterJndi(getJndiContainerName());        } catch (NameNotFoundException e) {            // We were probably unbound already. Ignore.            logger.log(Level.WARNING, "deregistration of jndi", e);        } catch (Exception e) {            e.printStackTrace();        }                if(Heritrix.httpServer != null) {            // Shut down the web access.            try {                Heritrix.httpServer.stopServer();            } catch (InterruptedException e) {                // Generally this can be ignored, but we'll print a stack trace                // just in case.                e.printStackTrace();            } finally {                Heritrix.httpServer = null;            }        }    }    /**     * Exit program. Recommended that prepareHeritrixShutDown() be invoked     * prior to this method.     */    public static void performHeritrixShutDown() {        performHeritrixShutDown(0);    }    /**     * Exit program. Recommended that prepareHeritrixShutDown() be invoked     * prior to this method.     *     * @param exitCode Code to pass System.exit.     *     */    public static void performHeritrixShutDown(int exitCode) {        System.exit(exitCode);    }    /**     * Shutdown all running heritrix instances and the JVM.     * Assumes stop has already been called.	 * @param exitCode Exit code to pass system exit.	 */	public static void shutdown(final int exitCode) {        getShutdownThread(true, exitCode, "Heritrix shutdown").start();	}        protected static Thread getShutdownThread(final boolean sysexit,            final int exitCode, final String name) {        Thread t = new Thread(name) {            public void run() {                Heritrix.prepareHeritrixShutDown();                if (sysexit) {                    Heritrix.performHeritrixShutDown(exitCode);                }            }        };        t.setDaemon(true);        return t;    }        public static void shutdown() {        shutdown(0);    }        /**     * Register Heritrix with JNDI, JMX, and with the static hashtable of all     * Heritrix instances known to this JVM.     *      * If launched from cmdline, register Heritrix MBean if an agent to register     * ourselves with. Usually this method will only have effect if we're     * running in a 1.5.0 JDK and command line options such as     * '-Dcom.sun.management.jmxremote.port=8082     * -Dcom.sun.management.jmxremote.authenticate=false     * -Dcom.sun.management.jmxremote.ssl=false' are supplied.     * See <a href="http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html">Monitoring     * and Management Using JMX</a>     * for more on the command line options and how to connect to the     * Heritrix bean using the JDK 1.5.0 jconsole tool.  We register currently     * with first server we find (TODO: Make configurable).     *      * <p>If we register successfully with a JMX agent, then part of the     * registration will include our registering ourselves with JNDI.     *      * <p>Finally, add the heritrix instance to the hashtable of all the     * Heritrix instances floating in the current VM.  This latter registeration     * happens whether or no there is a JMX agent to register with.  This is     * a list we keep out of convenience so its easy iterating over all     *  all instances calling stop when main application is going down.     *      * @param h Instance of heritrix to register.     * @param name Name to use for this Heritrix instance.     * @param jmxregister True if we are to register this instance with JMX.     * @throws NullPointerException     * @throws MalformedObjectNameException     * @throws NotCompliantMBeanException      * @throws MBeanRegistrationException      * @throws InstanceAlreadyExistsException      */    protected static void registerHeritrix(final Heritrix h,            final String name, final boolean jmxregister)    throws MalformedObjectNameException, InstanceAlreadyExistsException,    MBeanRegistrationException, NotCompliantMBeanException {        MBeanServer server = getMBeanServer();        if (server != null) {            // Are we to manage the jmx registration?  Or is it being done for            // us by an external process: e.g. This instance was created by            // MBeanAgent.            if (jmxregister) {                ObjectName objName = (name == null || name.length() <= 0)?                    getJmxObjectName(): getJmxObjectName(name);                registerMBean(server, h, objName);            }        } else {            // JMX ain't available. Put this instance into the list of Heritrix            // instances so findable by the UI (Normally this is done in the            // JMX postRegister routine below).  When no JMX, can only have            // one instance of Heritrix so no need to do the deregisteration.            Heritrix.instances.put(h.getNoJmxName(), h);        }    }        protected static void unregisterHeritrix(final Heritrix h)    throws InstanceNotFoundException, MBeanRegistration

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频一区二区三区中文字幕| 国产情人综合久久777777| 亚洲免费毛片网站| 91网站在线播放| 亚洲精品中文字幕乱码三区| 欧洲中文字幕精品| 三级精品在线观看| 欧美一区二区三区在线视频| 麻豆国产精品777777在线| 精品精品国产高清一毛片一天堂| 国产另类ts人妖一区二区| 国产精品视频九色porn| 91丨porny丨首页| 亚洲一级二级三级在线免费观看| 久久久久久久久伊人| 国产乱码精品一区二区三区忘忧草 | 狠狠v欧美v日韩v亚洲ⅴ| 久久久精品免费网站| 色综合欧美在线视频区| 天天综合天天综合色| 久久精品一二三| 欧美在线观看禁18| 美国三级日本三级久久99| 国产精品污www在线观看| 欧美性色黄大片手机版| 国产一区二区三区免费| 悠悠色在线精品| 久久网站热最新地址| 色呦呦日韩精品| 美国毛片一区二区三区| 中文字幕日韩av资源站| 欧美精品欧美精品系列| www.日本不卡| 蜜桃视频第一区免费观看| 中文字幕第一区二区| 91精品国产入口| 一本大道久久a久久精品综合| 青娱乐精品视频| 国产精品电影一区二区| 日韩一级片网址| 欧美午夜电影网| 97久久精品人人爽人人爽蜜臀| 日本美女视频一区二区| 日韩美女啊v在线免费观看| 日韩欧美一级二级三级久久久| 99视频一区二区| 国产一区激情在线| 亚洲综合偷拍欧美一区色| 精品99999| 91麻豆精品国产自产在线 | 成人av中文字幕| 欧美96一区二区免费视频| 中文字幕在线观看不卡视频| 欧美xxxxx牲另类人与| 欧美三级中文字幕在线观看| aa级大片欧美| 国产成人日日夜夜| 精品亚洲国内自在自线福利| 视频在线观看91| 亚洲主播在线播放| 色94色欧美sute亚洲线路二| 欧美一区二区免费视频| 欧美日韩国产经典色站一区二区三区 | 亚洲成人激情自拍| 亚洲女同ⅹxx女同tv| 中文字幕一区三区| 中文字幕 久热精品 视频在线| 精品日韩在线观看| 日韩欧美国产wwwww| 91精品一区二区三区在线观看| 91久久精品日日躁夜夜躁欧美| 99久久久久久99| 91在线国内视频| 99久久免费国产| 91美女精品福利| 色噜噜狠狠色综合中国| 欧美中文字幕久久| 欧美性做爰猛烈叫床潮| 欧美日韩精品综合在线| 6080午夜不卡| 日韩一级精品视频在线观看| 日韩三级视频中文字幕| 日韩精品影音先锋| 久久久久国产免费免费| 国产女主播视频一区二区| 中文字幕精品一区| 亚洲丝袜自拍清纯另类| 一区二区三区免费在线观看| 亚洲一区成人在线| 天天综合网天天综合色| 日本不卡高清视频| 九九视频精品免费| 国产 欧美在线| 91香蕉视频黄| 欧美视频在线一区二区三区| 91麻豆精品国产无毒不卡在线观看| 4438亚洲最大| 2欧美一区二区三区在线观看视频| 久久久噜噜噜久噜久久综合| 日本一区二区久久| 玉米视频成人免费看| 热久久久久久久| 国产露脸91国语对白| 99国产精品久久久久| 精品久久人人做人人爱| 欧美国产日韩精品免费观看| 亚洲综合丝袜美腿| 国产一区二区三区免费| 色爱区综合激月婷婷| 日韩一级完整毛片| 国产精品二三区| 日本在线不卡视频一二三区| 成人动漫中文字幕| 欧美色综合久久| 26uuu久久天堂性欧美| 国产精品久久国产精麻豆99网站| 亚洲成人一区二区在线观看| 久久99精品久久久久久国产越南| 99久久精品久久久久久清纯| 91精品国产乱码久久蜜臀| 中文字幕乱码亚洲精品一区| 午夜欧美视频在线观看| 成人一区二区三区视频| 欧美日韩国产在线观看| 国产精品久久三| 日本视频中文字幕一区二区三区| 豆国产96在线|亚洲| 欧美日韩不卡一区二区| 国产精品热久久久久夜色精品三区 | 在线观看日韩精品| 国产亚洲精品福利| 免费看欧美美女黄的网站| 91啦中文在线观看| 久久精品亚洲一区二区三区浴池| 亚洲第一福利视频在线| av在线不卡观看免费观看| 欧美一区二区三区小说| 一区二区三区中文在线观看| 国产精品资源站在线| 欧美精品精品一区| 一区二区三区资源| 成人综合婷婷国产精品久久蜜臀| 欧美一卡二卡三卡| 亚洲成人精品一区二区| 94-欧美-setu| 国产精品日产欧美久久久久| 久久91精品久久久久久秒播| 在线播放国产精品二区一二区四区| 亚洲人成伊人成综合网小说| 丰满亚洲少妇av| 久久久久久99久久久精品网站| 人妖欧美一区二区| 欧美精品丝袜久久久中文字幕| 亚洲一区二区av电影| 在线观看av一区| 一个色在线综合| 欧美专区亚洲专区| 夜夜嗨av一区二区三区网页| 91蜜桃婷婷狠狠久久综合9色| 国产精品视频一二三| 成人av网址在线| 国产精品美女一区二区三区| 国产高清视频一区| 国产精品午夜久久| 波多野洁衣一区| 亚洲日本护士毛茸茸| 色婷婷综合久久久久中文| 亚洲男同性恋视频| 91国产精品成人| 亚洲大尺度视频在线观看| 欧美日韩黄色影视| 日本午夜精品一区二区三区电影| 欧美一区二区在线不卡| 激情综合五月婷婷| 国产日韩欧美精品电影三级在线| 国产成都精品91一区二区三| 国产精品伦一区二区三级视频| 成人精品电影在线观看| 中文字幕一区二区在线播放| 一本一道久久a久久精品综合蜜臀| 亚洲欧美另类小说视频| 欧美视频你懂的| 蜜臀久久久久久久| 26uuu久久综合| 成人高清免费观看| 亚洲国产精品麻豆| 精品国产伦一区二区三区观看体验| 韩国女主播一区| 成人免费视频在线观看| 欧美人与z0zoxxxx视频| 久久超碰97人人做人人爱| 久久久久久久性| 一本色道久久综合精品竹菊 | 性久久久久久久| 精品国产乱子伦一区| 成人免费精品视频| 丝袜亚洲精品中文字幕一区| 久久精品一区二区三区不卡| 91国偷自产一区二区三区成为亚洲经典 | 欧美一区二区三区四区在线观看 |