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

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

?? heritrix.java

?? 高性能分詞算法
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* Heritrix * * $Id: Heritrix.java 6081 2008-12-09 00:58:14Z gojomo $ * * Created on May 15, 2003 * * Copyright (C) 2003 Internet Archive. * * This file is part of the Heritrix web crawler (crawler.archive.org). * * Heritrix is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * any later version. * * Heritrix is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Lesser Public License for more details. * * You should have received a copy of the GNU Lesser Public License * along with Heritrix; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package org.archive.crawler;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.PrintStream;import java.io.PrintWriter;import java.net.HttpURLConnection;import java.net.InetAddress;import java.net.URL;import java.net.URLConnection;import java.net.UnknownHostException;import java.util.ArrayList;import java.util.Arrays;import java.util.Collection;import java.util.Collections;import java.util.Enumeration;import java.util.Hashtable;import java.util.Iterator;import java.util.List;import java.util.Map;import java.util.Properties;import java.util.StringTokenizer;import java.util.TimeZone;import java.util.Vector;import java.util.logging.Level;import java.util.logging.LogManager;import java.util.logging.Logger;import javax.management.Attribute;import javax.management.AttributeList;import javax.management.AttributeNotFoundException;import javax.management.DynamicMBean;import javax.management.InstanceAlreadyExistsException;import javax.management.InstanceNotFoundException;import javax.management.InvalidAttributeValueException;import javax.management.MBeanInfo;import javax.management.MBeanNotificationInfo;import javax.management.MBeanOperationInfo;import javax.management.MBeanRegistration;import javax.management.MBeanRegistrationException;import javax.management.MBeanServer;import javax.management.MBeanServerFactory;import javax.management.MalformedObjectNameException;import javax.management.NotCompliantMBeanException;import javax.management.ObjectName;import javax.management.ReflectionException;import javax.management.RuntimeOperationsException;import javax.management.openmbean.CompositeData;import javax.management.openmbean.CompositeDataSupport;import javax.management.openmbean.CompositeType;import javax.management.openmbean.OpenDataException;import javax.management.openmbean.OpenMBeanAttributeInfoSupport;import javax.management.openmbean.OpenMBeanConstructorInfoSupport;import javax.management.openmbean.OpenMBeanInfoSupport;import javax.management.openmbean.OpenMBeanOperationInfoSupport;import javax.management.openmbean.OpenMBeanParameterInfo;import javax.management.openmbean.OpenMBeanParameterInfoSupport;import javax.management.openmbean.OpenType;import javax.management.openmbean.SimpleType;import javax.management.openmbean.TabularData;import javax.management.openmbean.TabularDataSupport;import javax.management.openmbean.TabularType;import javax.naming.CompoundName;import javax.naming.Context;import javax.naming.NameNotFoundException;import javax.naming.NamingException;import javax.naming.NoInitialContextException;import org.apache.commons.cli.Option;import org.archive.crawler.admin.CrawlJob;import org.archive.crawler.admin.CrawlJobErrorHandler;import org.archive.crawler.admin.CrawlJobHandler;import org.archive.crawler.datamodel.CredentialStore;import org.archive.crawler.datamodel.credential.Credential;import org.archive.crawler.event.CrawlStatusListener;import org.archive.crawler.framework.AlertManager;import org.archive.crawler.framework.CrawlController;import org.archive.crawler.framework.exceptions.FatalConfigurationException;import org.archive.crawler.framework.exceptions.InitializationException;import org.archive.crawler.selftest.SelfTestCrawlJobHandler;import org.archive.crawler.settings.XMLSettingsHandler;import org.archive.io.SinkHandler;import org.archive.io.SinkHandlerLogRecord;import org.archive.net.UURI;import org.archive.util.FileUtils;import org.archive.util.IoUtils;import org.archive.util.JmxUtils;import org.archive.util.JndiUtils;import org.archive.util.PropertyUtils;import org.archive.util.TextUtils;import sun.net.www.protocol.file.FileURLConnection;/** * Main class for Heritrix crawler. * * Heritrix is usually launched by a shell script that backgrounds heritrix * that redirects all stdout and stderr emitted by heritrix to a log file.  So * that startup messages emitted subsequent to the redirection of stdout and * stderr show on the console, this class prints usage or startup output * such as where the web UI can be found, etc., to a STARTLOG that the shell * script is waiting on.  As soon as the shell script sees output in this file, * it prints its content and breaks out of its wait. * See ${HERITRIX_HOME}/bin/heritrix. *  * <p>Heritrix can also be embedded or launched by webapp initialization or * by JMX bootstrapping.  So far I count 4 methods of instantiation: * <ol> * <li>From this classes main -- the method usually used;</li> * <li>From the Heritrix UI (The local-instances.jsp) page;</li> * <li>A creation by a JMX agent at the behest of a remote JMX client; and</li> * <li>A container such as tomcat or jboss.</li> * </ol> * * @author gojomo * @author Kristinn Sigurdsson * @author Stack */public class Heritrix implements DynamicMBean, MBeanRegistration {    /**     * Heritrix logging instance.     */    private static final Logger logger =        Logger.getLogger(Heritrix.class.getName());        private static final File TMPDIR =        new File(System.getProperty("java.io.tmpdir", "/tmp"));    /**     * Name of the heritrix properties file.     */    private static final String PROPERTIES = "heritrix.properties";    /**     * Name of the key to use specifying alternate heritrix properties on     * command line.     */    private static final String PROPERTIES_KEY = PROPERTIES;        /**     * Prefix used on our properties we'll add to the System.properties list.     */    private static final String HERITRIX_PROPERTIES_PREFIX = "heritrix.";    /**     * Prefix used on other properties we'll add to the System.properties      * list (after stripping this prefix).      */    private static final String SYSTEM_PREFIX = "system.";    /**     * Instance of web server if one was started.     */    private static SimpleHttpServer httpServer = null;    /**     * CrawlJob handler. Manages multiple crawl jobs at runtime.     */    private CrawlJobHandler jobHandler = null;    /**     * Heritrix start log file.     *     * This file contains standard out produced by this main class for startup     * only.  Used by heritrix shell script.  Name here MUST match that in the     * <code>bin/heritrix</code> shell script.  This is a DEPENDENCY the shell     * wrapper has on this here java heritrix.     */    private static final String STARTLOG = "heritrix_dmesg.log";    /**     * Default encoding.     *      * Used for content when fetching if none specified.     */	public static final String DEFAULT_ENCODING = "ISO-8859-1";    /**     * Heritrix stderr/stdout log file.     *     * This file should have nothing in it except messages over which we have     * no control (JVM stacktrace, 3rd-party lib emissions).  The wrapper     * startup script directs stderr/stdout here. This is an INTERDEPENDENCY     * this program has with the wrapper shell script.  Shell can actually     * pass us an alternate to use for this file.     */    private static String DEFAULT_HERITRIX_OUT = "heritrix_out.log";    /**     * Where to write this classes startup output.     *      * This out should only be used if Heritrix is being run from the     * command-line.     */    private static PrintWriter out = null;    /**     * The org.archive package     */    private static final String ARCHIVE_PACKAGE = "org.archive.";    /**     * The crawler package.     */	private static final String CRAWLER_PACKAGE = Heritrix.class.getName().        substring(0, Heritrix.class.getName().lastIndexOf('.'));        /**     * The root context for a webapp.     */    private static final String ROOT_CONTEXT = "/";    /**     * Set to true if application is started from command line.     */    private static boolean commandLine = false;        /**     * True if container initialization has been run.     */    private static boolean containerInitialized = false;        /**     * True if properties have been loaded.     */    private static boolean propertiesLoaded = false;        private static final String JAR_SUFFIX = ".jar";        private AlertManager alertManager;    /**     * The context of the GUI webapp.  Default is root.     */    private static String adminContext = ROOT_CONTEXT;        /**     * True if we're to put up a GUI.     * Cmdline processing can override.     */    private static boolean gui =        !PropertyUtils.getBooleanProperty("heritrix.cmdline.nowui");        /**     * Port to put the GUI up on.     * Cmdline processing can override.     */    private static int guiPort = SimpleHttpServer.DEFAULT_PORT;        /**     * A collection containing only localhost.  Used as default value     * for guiHosts, and passed to SimpleHttpServer when doing selftest.     */    final private static Collection<String> LOCALHOST_ONLY =     Collections.unmodifiableList(Arrays.asList(new String[] { "127.0.0.1" }));        /**     * Hosts to bind the GUI webserver to.     * By default, only contans localhost.     * Set to an empty collection to indicate that all available network     * interfaces should be used for the webserver.     */    private static Collection<String> guiHosts = LOCALHOST_ONLY;            /**     * Web UI server, realm, context name.     */    private static String ADMIN = "admin";        // OpenMBean support.    /**     * The MBean server we're registered with (May be null).     */    private MBeanServer mbeanServer = null;        /**     * MBean name we were registered as.     */    private ObjectName mbeanName = null;        /**     * Keep reference to all instances of Heritrix.     * Used by the UI to figure which of the local Heritrice it should     * be going against and to figure what to shutdown on the way out (If     * there was always a JMX Agent, we wouldn't need to keep this list.  We     * could always ask the JMX Agent for all instances. UPDATE: True we could     * always ask the JMX Agent but we might keep around this local reference     * because it will allow faster, less awkward -- think of marshalling the args     * for JMX invoke operation -- access to local Heritrix instances.  A new     * usage for this instances Map is in CrawlJob#preRegister to find the hosting     * Heritrix instance).     */    private static Map<String,Heritrix> instances     = new Hashtable<String,Heritrix>();        private OpenMBeanInfoSupport openMBeanInfo;    private final static String STATUS_ATTR = "Status";    private final static String VERSION_ATTR = "Version";    private final static String ISRUNNING_ATTR = "IsRunning";    private final static String ISCRAWLING_ATTR = "IsCrawling";    private final static String ALERTCOUNT_ATTR = "AlertCount";    private final static String NEWALERTCOUNT_ATTR = "NewAlertCount";    private final static String CURRENTJOB_ATTR = "CurrentJob";    private final static List ATTRIBUTE_LIST;    static {        ATTRIBUTE_LIST = Arrays.asList(new String [] {STATUS_ATTR,            VERSION_ATTR, ISRUNNING_ATTR, ISCRAWLING_ATTR,            ALERTCOUNT_ATTR, NEWALERTCOUNT_ATTR, CURRENTJOB_ATTR});

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线不卡的av| 成人免费毛片aaaaa**| 激情另类小说区图片区视频区| 日本中文在线一区| www.亚洲免费av| 亚洲精品一区二区精华| 1000精品久久久久久久久| 免费成人结看片| 日本高清不卡aⅴ免费网站| 久久色.com| 日韩高清不卡一区二区| 色综合天天综合网国产成人综合天| 精品黑人一区二区三区久久| 一区二区三区精品久久久| 99视频精品在线| 国产亚洲成av人在线观看导航| 日本女人一区二区三区| 777a∨成人精品桃花网| 一片黄亚洲嫩模| 色综合av在线| 亚洲精品乱码久久久久久| 99久久99久久精品国产片果冻| 久久久噜噜噜久久人人看| 蜜乳av一区二区三区| 欧美日韩一区视频| 亚洲国产视频网站| 欧美日韩你懂的| 亚洲成年人影院| 欧美精品国产精品| 免费久久精品视频| 日韩欧美美女一区二区三区| 久久精品国产在热久久| 3d成人动漫网站| 日本成人在线看| 精品嫩草影院久久| 国产高清在线精品| 国产精品久久久久婷婷| 91在线播放网址| 一区二区三区免费| 69精品人人人人| 麻豆精品新av中文字幕| 精品国产乱码久久久久久1区2区 | 在线不卡中文字幕播放| 日韩精品一卡二卡三卡四卡无卡| 欧美日韩国产美| 美女性感视频久久| 中文字幕不卡在线观看| 91性感美女视频| 水蜜桃久久夜色精品一区的特点| 日韩免费成人网| 成人免费毛片高清视频| 亚洲一级二级三级| 欧美大片在线观看一区二区| 国产麻豆午夜三级精品| 中文字幕制服丝袜一区二区三区| 91美女在线视频| 日韩成人精品视频| 日本一区二区三区高清不卡| 91丝袜美女网| 日韩av午夜在线观看| 国产日本亚洲高清| 欧美一区二区三区免费视频| 蜜臀久久99精品久久久画质超高清 | 成人午夜短视频| 亚洲免费观看高清完整版在线观看 | 久久久久久久电影| 91蜜桃网址入口| 久久99久久99精品免视看婷婷 | 日本成人超碰在线观看| 中文字幕高清不卡| 欧美色倩网站大全免费| 国产美女精品在线| 亚洲不卡一区二区三区| 久久久久久亚洲综合影院红桃 | 95精品视频在线| 久久99精品国产| 亚洲最新视频在线观看| 久久久久久亚洲综合| 欧美日韩中文国产| 不卡高清视频专区| 久久草av在线| 婷婷国产在线综合| 国产精品久久午夜| 日韩精品中文字幕一区二区三区 | 成人国产亚洲欧美成人综合网| 日韩精品每日更新| 亚洲欧美日韩在线| 国产日韩精品视频一区| 欧美一级一级性生活免费录像| 99视频国产精品| 国产黄色成人av| 老司机免费视频一区二区| 亚洲久本草在线中文字幕| 国产午夜精品在线观看| 日韩女优电影在线观看| 欧美日韩国产另类一区| 91久久精品一区二区三| 波多野结衣视频一区| 国产剧情一区二区| 91免费小视频| 成人午夜视频在线观看| 国产成人午夜精品影院观看视频| 日本中文字幕一区| 日韩av在线播放中文字幕| 亚洲综合另类小说| 亚洲一区在线视频观看| 亚洲免费av在线| 亚洲精品视频在线| 玉足女爽爽91| 亚洲一级二级在线| 亚洲成人av一区二区| 亚洲午夜久久久久| 无码av免费一区二区三区试看| 一区二区三国产精华液| 亚洲精品中文在线影院| 亚洲欧美乱综合| 亚洲精品国产a久久久久久| 亚洲欧美日韩国产成人精品影院| 国产精品区一区二区三区| 国产精品久久久久久久岛一牛影视| 国产欧美日韩麻豆91| 国产精品视频一二三| 成人免费小视频| 亚洲影视资源网| 视频一区欧美日韩| 久久国产麻豆精品| 国产盗摄一区二区| 99久久久免费精品国产一区二区| 成人精品国产一区二区4080| 99久久婷婷国产综合精品电影| 99久久精品国产网站| 欧美三级三级三级| 欧美成人精品福利| 国产精品久久久久久久裸模| 亚洲乱码国产乱码精品精98午夜 | 亚洲一区av在线| 美女视频第一区二区三区免费观看网站| 日韩成人免费电影| 日本精品一区二区三区四区的功能| 欧美色图在线观看| 精品第一国产综合精品aⅴ| 国产精品免费丝袜| 午夜视频在线观看一区二区三区| 免费看日韩精品| 波多野结衣视频一区| 在线播放日韩导航| 国产欧美精品一区二区色综合| 一区二区三区资源| 久久国产人妖系列| 91免费版在线| 精品国产一区二区三区久久影院 | 精品88久久久久88久久久| 中文字幕av一区 二区| 午夜精品久久久久久不卡8050| 精品一区二区三区在线播放| 99久久er热在这里只有精品15| 欧美日本韩国一区| 国产精品情趣视频| 美女脱光内衣内裤视频久久网站| 99精品在线观看视频| 日韩一本二本av| 亚洲欧美日韩中文播放| 国产一区 二区| 欧美日韩国产一级二级| 国产精品入口麻豆原神| 免费观看91视频大全| 91丨porny丨首页| 精品福利一二区| 香蕉加勒比综合久久| 99精品视频在线播放观看| 26uuu久久综合| 日日摸夜夜添夜夜添国产精品 | 亚洲日本在线观看| 国产一区二区三区综合| 这里只有精品99re| 亚洲国产欧美日韩另类综合 | 中文字幕日本不卡| 黄一区二区三区| 337p亚洲精品色噜噜狠狠| 亚洲欧洲日韩av| 成人午夜伦理影院| 亚洲精品一区二区三区影院| 午夜精品久久久久久久久| 色诱亚洲精品久久久久久| 国产欧美一区视频| 国产激情91久久精品导航| 久久午夜电影网| 青娱乐精品在线视频| 欧美日韩国产一区| 亚洲成av人片在线| 欧美亚洲国产一区在线观看网站| 国产精品久久综合| 成人开心网精品视频| 欧美精彩视频一区二区三区| 黑人精品欧美一区二区蜜桃| 精品三级在线看| 久久精品国产成人一区二区三区| 7777精品伊人久久久大香线蕉的| 亚洲成人自拍一区| 欧美伦理影视网|