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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? heritrix.java

?? 高性能分詞算法
?? JAVA
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
        // Ok, we should now have everything to launch the program.        String status = null;        if (selfTest) {            // If more than just '--selftest' and '--port' passed, then            // there is confusion on what is being asked of us.  Print usage            // rather than proceed.            for (int i = 0; i < options.length; i++) {                if (options[i].getId() != 'p' && options[i].getId() != 's') {                    clp.usage(1);                }            }            if (arguments.size() > 0) {                // No arguments accepted by selftest.                clp.usage(1);            }            status = selftest(selfTestName, Heritrix.guiPort);        } else {			if (!Heritrix.gui) {				if (options.length > 1) {					// If more than just '--nowui' passed, then there is					// confusion on what is being asked of us. Print usage					// rather than proceed.					clp.usage(1);				}				Heritrix h = new Heritrix(true);				status = h.doOneCrawl(crawlOrderFile);			} else {                if (!isValidLoginPasswordString(adminLoginPassword)) {                    // exit printing usage info if no webui login:password given                    clp.usage("Invalid admin login:password value, or none "                            + "specified. ", 1);                }				status = startEmbeddedWebserver(                        Heritrix.guiHosts, Heritrix.guiPort,						adminLoginPassword);				Heritrix h = new Heritrix(true);				String tmp = h.launch(crawlOrderFile, runMode);				if (tmp != null) {					status += ('\n' + tmp);				}			}		}        return status;    }        /**	 * @return The file we dump stdout and stderr into.	 */    public static String getHeritrixOut() {        String tmp = System.getProperty("heritrix.out");        if (tmp == null || tmp.length() == 0) {            tmp = Heritrix.DEFAULT_HERITRIX_OUT;        }        return tmp;    }    /**     * Exploit <code>-Dheritrix.home</code> if available to us.     * Is current working dir if no heritrix.home property supplied.     * @return Heritrix home directory.     * @throws IOException     */    protected static File getHeritrixHome()    throws IOException {        File heritrixHome = null;        String home = System.getProperty("heritrix.home");        if (home != null && home.length() > 0) {            heritrixHome = new File(home);            if (!heritrixHome.exists()) {                throw new IOException("HERITRIX_HOME <" + home +                    "> does not exist.");            }        } else {            heritrixHome = new File(new File("").getAbsolutePath());        }        return heritrixHome;    }        /**     * @return The directory into which we put jobs.  If the system property     * 'heritrix.jobsdir' is set, we will use its value in place of the default     * 'jobs' directory in the current working directory.     * @throws IOException     */    public static File getJobsdir() throws IOException {        Heritrix.loadProperties(); // if called in constructor        String jobsdirStr = System.getProperty("heritrix.jobsdir", "jobs");        File jobsdir = new File(jobsdirStr);        return (jobsdir.isAbsolute())?            jobsdir:            new File(getHeritrixHome(), jobsdirStr);    }        /**     * Get and check for existence of expected subdir.     *     * If development flag set, then look for dir under src dir.     *     * @param subdirName Dir to look for.     * @return The extant subdir.  Otherwise null if we're running     * in a webapp context where there is no conf directory available.     * @throws IOException if unable to find expected subdir.     */    protected static File getSubDir(String subdirName)    throws IOException {        return getSubDir(subdirName, true);    }        /**     * Get and optionally check for existence of subdir.     *     * If development flag set, then look for dir under src dir.     *     * @param subdirName Dir to look for.     * @param fail True if we are to fail if directory does not     * exist; false if we are to return false if the directory does not exist.     * @return The extant subdir.  Otherwise null if we're running     * in a webapp context where there is no subdir directory available.     * @throws IOException if unable to find expected subdir.     */    protected static File getSubDir(String subdirName, boolean fail)    throws IOException {        String path = isDevelopment()?            "src" + File.separator + subdirName:            subdirName;        File dir = new File(getHeritrixHome(), path);        if (!dir.exists()) {            if (fail) {                throw new IOException("Cannot find subdir: " + subdirName);            }            dir = null;        }        return dir;    }        /**     * Test string is valid login/password string.     *     * A valid login/password string has the login and password compounded     * w/ a ':' delimiter.     *     * @param str String to test.     * @return True if valid password/login string.     */    protected static boolean isValidLoginPasswordString(String str) {        boolean isValid = false;        StringTokenizer tokenizer = new StringTokenizer(str,  ":");        if (tokenizer.countTokens() == 2) {            String login = ((String)tokenizer.nextElement()).trim();            String password = ((String)tokenizer.nextElement()).trim();            if (login.length() > 0 && password.length() > 0) {                isValid = true;            }        }        return isValid;    }    protected static boolean isDevelopment() {        return System.getProperty("heritrix.development") != null;    }    /**     * Load the heritrix.properties file.     *      * Adds any property that starts with     * <code>HERITRIX_PROPERTIES_PREFIX</code>     * or <code>ARCHIVE_PACKAGE</code>     * into system properties (except logging '.level' directives).     * @return Loaded properties.     * @throws IOException     */    protected static Properties loadProperties()    throws IOException {        if (Heritrix.propertiesLoaded) {            return System.getProperties();        }        Heritrix.propertiesLoaded = true;                    Properties properties = new Properties();        properties.load(getPropertiesInputStream());                // Any property that begins with ARCHIVE_PACKAGE, make it        // into a system property. While iterating, check to see if anything        // defined on command-line, and if so, it overrules whats in        // heritrix.properties.        for (Enumeration e = properties.keys(); e.hasMoreElements();) {            String key = ((String)e.nextElement()).trim();        	if (key.startsWith(ARCHIVE_PACKAGE) ||                    key.startsWith(HERITRIX_PROPERTIES_PREFIX)) {                // Don't add the heritrix.properties entries that are                // changing the logging level of particular classes.                String value = properties.getProperty(key).trim();                if (key.indexOf(".level") < 0) {                    copyToSystemProperty(key, value);                }            }  else if (key.startsWith(SYSTEM_PREFIX)) {                String value = properties.getProperty(key).trim();                copyToSystemProperty(key.substring(SYSTEM_PREFIX.length()), value);             }        }        return properties;    }    /**     * Copy the given key-value into System properties, as long as there     * is no existing value.      * @param key property key      * @param value property value     */    protected static void copyToSystemProperty(String key, String value) {        if (System.getProperty(key) == null ||            System.getProperty(key).length() == 0) {            System.setProperty(key, value);        }    }    protected static InputStream getPropertiesInputStream()    throws IOException {        File file = null;        // Look to see if properties have been passed on the cmd-line.        String alternateProperties = System.getProperty(PROPERTIES_KEY);        if (alternateProperties != null && alternateProperties.length() > 0) {            file = new File(alternateProperties);        }        // Get properties from conf directory if one available.        if ((file == null || !file.exists()) && getConfdir(false) != null) {            file = new File(getConfdir(), PROPERTIES);            if (!file.exists()) {                // If no properties file in the conf dir, set file back to                // null so we go looking for heritrix.properties on classpath.                file = null;            }        }        // If not on the command-line, there is no conf dir. Then get the        // properties from the CLASSPATH (Classpath file separator is always        // '/', whatever the platform.        InputStream is = (file != null)?            new FileInputStream(file):            Heritrix.class.getResourceAsStream("/" + PROPERTIES_KEY);        if (is == null) {            throw new IOException("Failed to load properties file from" +                " filesystem or from classpath.");        }        return is;    }    /**     * If the user hasn't altered the default logging parameters, tighten them     * up somewhat: some of our libraries are way too verbose at the INFO or     * WARNING levels.     *      * This might be a problem running inside in someone else's     * container.  Container's seem to prefer commons logging so we     * ain't messing them doing the below.     *     * @throws IOException     * @throws SecurityException     */    protected static void patchLogging()    throws SecurityException, IOException {        if (System.getProperty("java.util.logging.config.class") != null) {            return;        }        if (System.getProperty("java.util.logging.config.file") != null) {            return;        }        // No user-set logging properties established; use defaults        // from distribution-packaged 'heritrix.properties'.        LogManager.getLogManager().            readConfiguration(getPropertiesInputStream());    }    /**     * Configure our trust store.     *     * If system property is defined, then use it for our truststore.  Otherwise     * use the heritrix truststore under conf directory if it exists.     *      * <p>If we're not launched from the command-line, we will not be able     * to find our truststore.  The truststore is nor normally used so rare     * should this be a problem (In case where we don't use find our trust     * store, we'll use the 'default' -- either the JVMs or the containers).     */    protected static void configureTrustStore() {        // Below must be defined in jsse somewhere but can' find it.        final String TRUSTSTORE_KEY = "javax.net.ssl.trustStore";        String value = System.getProperty(TRUSTSTORE_KEY);        File confdir = null;        try {            confdir = getConfdir(false);        } catch (IOException e) {            logger.log(Level.WARNING, "Failed to get confdir.", e);        }        if ((value == null || value.length() <= 0) && confdir != null) {            // Use the heritrix store if it exists on disk.            File heritrixStore = new File(confdir, "heritrix.cacerts");            if(heritrixStore.exists()) {                value = heritrixStore.getAbsolutePath();            }        }        if (value != null && value.length() > 0) {            System.setProperty(TRUSTSTORE_KEY, value);        }    }    /**     * Run the selftest     *     * @param oneSelfTestName Name of a test if we are to run one only rather     * than the default running all tests.     * @param port Port number to use for web UI.     *     * @exception Exception     * @return Status of how selftest startup went.     */    protected static String selftest(final String oneSelfTestName,            final int port)        throws Exception {        // Put up the webserver w/ the root and selftest webapps only.        final String SELFTEST = "selftest";        Heritrix.httpServer = new SimpleHttpServer(SELFTEST,            Heritrix.adminContext, LOCALHOST_ONLY, port, true);        // Set up digest auth for a section of the server so selftest can run        // auth tests.  Looks like can only set one login realm going by the        // web.xml dtd.  Otherwise, would be nice to selftest basic and digest.        // Have login, password and role all be SELFTEST.  Must match what is        // in the selftest order.xml file.        Heritrix.httpServer.setAuthentication(SELFTEST, Heritrix.adminContext,            SELFTEST, SELFTEST, SELFTEST);        Heritrix.httpServer.startServer();        // Get the order file from the CLASSPATH unless we're running in dev        // environment.        File selftestDir = (isDevelopment())?            new File(getConfdir(), SELFTEST):

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品网曝门| 五月婷婷久久丁香| 欧美日韩视频在线第一区| 毛片av一区二区| 一区在线观看视频| 日韩精品一区二区在线| 欧日韩精品视频| 成人一区二区三区中文字幕| 日韩精品高清不卡| 亚洲图片另类小说| 久久精品一区八戒影视| 欧美一区二区网站| 欧美亚洲综合一区| 91在线国产观看| 国产精品亚洲一区二区三区妖精| 日韩国产一二三区| 亚洲最大的成人av| 成人欧美一区二区三区小说| 久久亚洲影视婷婷| 精品久久久久久无| 6080亚洲精品一区二区| 欧美色男人天堂| 色婷婷狠狠综合| 91免费版在线看| 91色婷婷久久久久合中文| 丁香五精品蜜臀久久久久99网站 | 国产成人啪午夜精品网站男同| 一区二区三区加勒比av| 国产精品久久久爽爽爽麻豆色哟哟 | 色综合久久天天综合网| 国产suv精品一区二区6| 亚洲成av人片在线观看无码| 亚洲摸摸操操av| 综合网在线视频| 日韩理论片在线| 国产精品水嫩水嫩| 国产欧美一区二区精品性色超碰| 26uuu精品一区二区在线观看| 日韩一区二区三区高清免费看看| 欧美精品乱人伦久久久久久| 欧美日韩国产综合一区二区三区| 欧美日韩欧美一区二区| 精品视频一区二区不卡| 欧美理论电影在线| 777xxx欧美| 欧美大度的电影原声| 亚洲精品一区二区精华| 久久久噜噜噜久久中文字幕色伊伊| 26uuu久久综合| 国产精品无码永久免费888| 亚洲欧洲日产国码二区| 综合久久久久久久| 亚洲综合小说图片| 偷拍一区二区三区| 精品在线视频一区| 国产精品一二三区| 波多野结衣亚洲一区| 91麻豆精东视频| 欧美色老头old∨ideo| 欧美一级片在线看| 国产欧美日韩视频一区二区 | 综合网在线视频| 亚洲一区二区三区精品在线| 日韩精品一区第一页| 麻豆成人免费电影| 国产激情一区二区三区| 91免费国产在线| 69久久99精品久久久久婷婷 | 亚洲天堂2016| 五月天中文字幕一区二区| 国产综合久久久久久久久久久久 | 日韩三级免费观看| 国产欧美一区二区三区在线看蜜臀| 亚洲视频网在线直播| 天天综合色天天综合色h| 激情都市一区二区| 91在线观看污| 日韩区在线观看| 国产精品不卡在线观看| 天堂午夜影视日韩欧美一区二区| 国产成人一区在线| 欧美日韩国产成人在线91| 久久久久久久一区| 性感美女久久精品| 国产精品伊人色| 欧美色图天堂网| 欧美激情一区在线观看| 婷婷综合久久一区二区三区| 国产风韵犹存在线视精品| 欧美高清视频www夜色资源网| 国产丝袜美腿一区二区三区| 亚洲影院理伦片| 国产成人精品亚洲777人妖| 欧美日本一区二区三区四区| 中文字幕国产一区| 久久成人羞羞网站| 在线视频你懂得一区二区三区| 精品第一国产综合精品aⅴ| 1024成人网| 国产一区在线不卡| 欧美另类高清zo欧美| 亚洲麻豆国产自偷在线| 国产精品18久久久久久久久久久久| 欧美日韩国产精选| 国产精品伦理在线| 久久国产麻豆精品| 欧美高清hd18日本| 一区二区三区在线免费| 成人中文字幕在线| 精品国产乱码久久久久久1区2区 | 精品国产成人在线影院| 亚洲h动漫在线| 91免费版pro下载短视频| 国产欧美一区二区精品性色超碰| 蜜桃视频一区二区三区在线观看| 一本大道久久a久久精二百| 久久久亚洲精品一区二区三区| 午夜久久久久久久久久一区二区| 91麻豆6部合集magnet| 国产亚洲欧洲997久久综合| 老司机精品视频在线| 在线播放视频一区| 亚洲电影激情视频网站| 91传媒视频在线播放| 亚洲区小说区图片区qvod| 岛国精品在线观看| 国产无一区二区| 国产宾馆实践打屁股91| 26uuu国产在线精品一区二区| 蜜臀久久99精品久久久久久9| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| av资源站一区| 国产欧美一区二区三区网站| 国产精品一线二线三线| 日韩一区二区三区四区| 天堂av在线一区| 51久久夜色精品国产麻豆| 亚洲成av人影院在线观看网| 欧美亚洲动漫制服丝袜| 亚洲成人免费在线观看| 欧美肥大bbwbbw高潮| 天天色 色综合| 欧美一级视频精品观看| 久久成人麻豆午夜电影| 久久综合狠狠综合久久综合88| 国产一区二区三区国产| 国产精品无人区| 91无套直看片红桃| 一区二区成人在线视频| 欧美三级在线播放| 日韩vs国产vs欧美| 日韩欧美成人激情| 国产综合久久久久久鬼色| 国产午夜精品福利| 91免费视频网址| 伊人性伊人情综合网| 欧美美女bb生活片| 国内久久精品视频| 国产精品日日摸夜夜摸av| 色香色香欲天天天影视综合网| 亚洲图片一区二区| 精品久久久久久最新网址| 成人免费看的视频| 夜夜嗨av一区二区三区中文字幕| 在线播放欧美女士性生活| 国产乱对白刺激视频不卡| 国产精品理伦片| 欧美午夜在线一二页| 蜜桃精品视频在线| 国产精品美女久久久久aⅴ国产馆| 91理论电影在线观看| 热久久免费视频| 国产精品美日韩| 欧美日韩的一区二区| 国产成人免费9x9x人网站视频| 一区二区三区在线看| 免费人成在线不卡| 波多野结衣精品在线| 久久久久久日产精品| 精品少妇一区二区| av电影一区二区| 日本不卡视频在线观看| 国产欧美日韩另类一区| 欧美日韩成人综合天天影院 | 狠狠v欧美v日韩v亚洲ⅴ| 丝袜脚交一区二区| 国模套图日韩精品一区二区| 97se亚洲国产综合自在线不卡| 欧美美女bb生活片| 国产人久久人人人人爽| 亚洲高清在线精品| 福利一区二区在线| 欧美一区二区久久久| 国产精品视频你懂的| 日韩中文字幕麻豆| 99久久精品免费看国产免费软件| 91精品国产综合久久香蕉麻豆| 国产精品久久久久久久久免费相片| 亚洲 欧美综合在线网络| 成人sese在线|