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

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

?? logbrokermonitor.java

?? apache的log4j源碼
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License.  You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.log4j.lf5.viewer;import org.apache.log4j.lf5.LogLevel;import org.apache.log4j.lf5.LogRecord;import org.apache.log4j.lf5.LogRecordFilter;import org.apache.log4j.lf5.util.DateFormatManager;import org.apache.log4j.lf5.util.LogFileParser;import org.apache.log4j.lf5.util.StreamUtils;import org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerTree;import org.apache.log4j.lf5.viewer.categoryexplorer.CategoryPath;import org.apache.log4j.lf5.viewer.configure.ConfigurationManager;import org.apache.log4j.lf5.viewer.configure.MRUFileManager;import javax.swing.*;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import java.io.File;import java.io.IOException;import java.io.InputStream;import java.net.MalformedURLException;import java.net.URL;import java.util.*;import java.util.List;/** * LogBrokerMonitor *. * @author Michael J. Sikorsky * @author Robert Shaw * @author Brad Marlborough * @author Richard Wan * @author Brent Sprecher * @author Richard Hurst */// Contributed by ThoughtWorks Inc.public class LogBrokerMonitor {  //--------------------------------------------------------------------------  //   Constants:  //--------------------------------------------------------------------------  public static final String DETAILED_VIEW = "Detailed";//    public static final String STANDARD_VIEW = "Standard";//    public static final String COMPACT_VIEW = "Compact";  //--------------------------------------------------------------------------  //   Protected Variables:  //--------------------------------------------------------------------------  protected JFrame _logMonitorFrame;  protected int _logMonitorFrameWidth = 550;  protected int _logMonitorFrameHeight = 500;  protected LogTable _table;  protected CategoryExplorerTree _categoryExplorerTree;  protected String _searchText;  protected String _NDCTextFilter = "";  protected LogLevel _leastSevereDisplayedLogLevel = LogLevel.DEBUG;  protected JScrollPane _logTableScrollPane;  protected JLabel _statusLabel;  protected Object _lock = new Object();  protected JComboBox _fontSizeCombo;  protected int _fontSize = 10;  protected String _fontName = "Dialog";  protected String _currentView = DETAILED_VIEW;  protected boolean _loadSystemFonts = false;  protected boolean _trackTableScrollPane = true;  protected Dimension _lastTableViewportSize;  protected boolean _callSystemExitOnClose = false;  protected List _displayedLogBrokerProperties = new Vector();  protected Map _logLevelMenuItems = new HashMap();  protected Map _logTableColumnMenuItems = new HashMap();  protected List _levels = null;  protected List _columns = null;  protected boolean _isDisposed = false;  protected ConfigurationManager _configurationManager = null;  protected MRUFileManager _mruFileManager = null;  protected File _fileLocation = null;  //--------------------------------------------------------------------------  //   Private Variables:  //--------------------------------------------------------------------------  //--------------------------------------------------------------------------  //   Constructors:  //--------------------------------------------------------------------------  /**   * Construct a LogBrokerMonitor.   */  public LogBrokerMonitor(List logLevels) {    _levels = logLevels;    _columns = LogTableColumn.getLogTableColumns();    // This allows us to use the LogBroker in command line tools and    // have the option for it to shutdown.    String callSystemExitOnClose =        System.getProperty("monitor.exit");    if (callSystemExitOnClose == null) {      callSystemExitOnClose = "false";    }    callSystemExitOnClose = callSystemExitOnClose.trim().toLowerCase();    if (callSystemExitOnClose.equals("true")) {      _callSystemExitOnClose = true;    }    initComponents();    _logMonitorFrame.addWindowListener(        new LogBrokerMonitorWindowAdaptor(this));  }  //--------------------------------------------------------------------------  //   Public Methods:  //--------------------------------------------------------------------------  /**   * Show the frame for the LogBrokerMonitor. Dispatched to the   * swing thread.   */  public void show(final int delay) {    if (_logMonitorFrame.isVisible()) {      return;    }    // This request is very low priority, let other threads execute first.    SwingUtilities.invokeLater(new Runnable() {      public void run() {        Thread.yield();        pause(delay);        _logMonitorFrame.setVisible(true);      }    });  }  public void show() {    show(0);  }  /**   * Dispose of the frame for the LogBrokerMonitor.   */  public void dispose() {    _logMonitorFrame.dispose();    _isDisposed = true;    if (_callSystemExitOnClose == true) {      System.exit(0);    }  }  /**   * Hide the frame for the LogBrokerMonitor.   */  public void hide() {    _logMonitorFrame.setVisible(false);  }  /**   * Get the DateFormatManager for formatting dates.   */  public DateFormatManager getDateFormatManager() {    return _table.getDateFormatManager();  }  /**   * Set the date format manager for formatting dates.   */  public void setDateFormatManager(DateFormatManager dfm) {    _table.setDateFormatManager(dfm);  }  /**   * Get the value of whether or not System.exit() will be called   * when the LogBrokerMonitor is closed.   */  public boolean getCallSystemExitOnClose() {    return _callSystemExitOnClose;  }  /**   * Set the value of whether or not System.exit() will be called   * when the LogBrokerMonitor is closed.   */  public void setCallSystemExitOnClose(boolean callSystemExitOnClose) {    _callSystemExitOnClose = callSystemExitOnClose;  }  /**   * Add a log record message to be displayed in the LogTable.   * This method is thread-safe as it posts requests to the SwingThread   * rather than processing directly.   */  public void addMessage(final LogRecord lr) {    if (_isDisposed == true) {      // If the frame has been disposed of, do not log any more      // messages.      return;    }    SwingUtilities.invokeLater(new Runnable() {      public void run() {        _categoryExplorerTree.getExplorerModel().addLogRecord(lr);        _table.getFilteredLogTableModel().addLogRecord(lr); // update table        updateStatusLabel(); // show updated counts      }    });  }  public void setMaxNumberOfLogRecords(int maxNumberOfLogRecords) {    _table.getFilteredLogTableModel().setMaxNumberOfLogRecords(maxNumberOfLogRecords);  }  public JFrame getBaseFrame() {    return _logMonitorFrame;  }  public void setTitle(String title) {    _logMonitorFrame.setTitle(title + " - LogFactor5");  }  public void setFrameSize(int width, int height) {    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();    if (0 < width && width < screen.width) {      _logMonitorFrameWidth = width;    }    if (0 < height && height < screen.height) {      _logMonitorFrameHeight = height;    }    updateFrameSize();  }  public void setFontSize(int fontSize) {    changeFontSizeCombo(_fontSizeCombo, fontSize);    // setFontSizeSilently(actualFontSize); - changeFontSizeCombo fires event    // refreshDetailTextArea();  }  public void addDisplayedProperty(Object messageLine) {    _displayedLogBrokerProperties.add(messageLine);  }  public Map getLogLevelMenuItems() {    return _logLevelMenuItems;  }  public Map getLogTableColumnMenuItems() {    return _logTableColumnMenuItems;  }  public JCheckBoxMenuItem getTableColumnMenuItem(LogTableColumn column) {    return getLogTableColumnMenuItem(column);  }  public CategoryExplorerTree getCategoryExplorerTree() {    return _categoryExplorerTree;  }  // Added in version 1.2 - gets the value of the NDC text filter  // This value is set back to null each time the Monitor is initialized.  public String getNDCTextFilter() {    return _NDCTextFilter;  }  // Added in version 1.2 - sets the NDC Filter based on  // a String passed in by the user.  This value is persisted  // in the XML Configuration file.  public void setNDCLogRecordFilter(String textFilter) {    _table.getFilteredLogTableModel().        setLogRecordFilter(createNDCLogRecordFilter(textFilter));  }  //--------------------------------------------------------------------------  //   Protected Methods:  //--------------------------------------------------------------------------  protected void setSearchText(String text) {    _searchText = text;  }  // Added in version 1.2 - Sets the text filter for the NDC  protected void setNDCTextFilter(String text) {    // if no value is set, set it to a blank string    // otherwise use the value provided    if (text == null) {      _NDCTextFilter = "";    } else {      _NDCTextFilter = text;    }  }  // Added in version 1.2 - Uses a different filter that sorts  // based on an NDC string passed in by the user.  If the string  // is null or is an empty string, we do nothing.  protected void sortByNDC() {    String text = _NDCTextFilter;    if (text == null || text.length() == 0) {      return;    }    // Use new NDC filter    _table.getFilteredLogTableModel().        setLogRecordFilter(createNDCLogRecordFilter(text));  }  protected void findSearchText() {    String text = _searchText;    if (text == null || text.length() == 0) {      return;    }    int startRow = getFirstSelectedRow();    int foundRow = findRecord(        startRow,        text,        _table.getFilteredLogTableModel().getFilteredRecords()    );    selectRow(foundRow);  }  protected int getFirstSelectedRow() {    return _table.getSelectionModel().getMinSelectionIndex();  }  protected void selectRow(int foundRow) {    if (foundRow == -1) {      String message = _searchText + " not found.";      JOptionPane.showMessageDialog(          _logMonitorFrame,          message,          "Text not found",          JOptionPane.INFORMATION_MESSAGE      );      return;    }    LF5SwingUtils.selectRow(foundRow, _table, _logTableScrollPane);  }  protected int findRecord(      int startRow,      String searchText,      List records      ) {    if (startRow < 0) {      startRow = 0; // start at first element if no rows are selected    } else {      startRow++; // start after the first selected row    }    int len = records.size();    for (int i = startRow; i < len; i++) {      if (matches((LogRecord) records.get(i), searchText)) {        return i; // found a record      }    }    // wrap around to beginning if when we reach the end with no match    len = startRow;    for (int i = 0; i < len; i++) {      if (matches((LogRecord) records.get(i), searchText)) {        return i; // found a record      }    }    // nothing found    return -1;  }  /**   * Check to see if the any records contain the search string.   * Searching now supports NDC messages and date.   */  protected boolean matches(LogRecord record, String text) {    String message = record.getMessage();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本成人在线电影网| 国产·精品毛片| 国产a级毛片一区| 欧美日产在线观看| 国产精品日日摸夜夜摸av| 五月综合激情婷婷六月色窝| 成人一区二区三区中文字幕| 宅男噜噜噜66一区二区66| 国产精品不卡视频| 国产精品自产自拍| 91麻豆精品国产综合久久久久久 | 日韩电影在线免费观看| 丁香天五香天堂综合| 日韩一区二区精品在线观看| 一区二区视频在线| 99在线视频精品| 日本一区二区高清| 国产精品一二三| 久久夜色精品国产欧美乱极品| 亚洲福利一区二区三区| 一本色道久久综合亚洲aⅴ蜜桃| 国产午夜一区二区三区| 久久se精品一区精品二区| 337p亚洲精品色噜噜噜| 国产一区二区三区高清播放| 欧美另类久久久品| 亚洲成人av一区| 欧美午夜影院一区| 亚洲午夜在线视频| 欧美午夜精品久久久久久超碰| 亚洲欧美激情小说另类| 成人av片在线观看| 亚洲欧美激情视频在线观看一区二区三区| 国产麻豆91精品| 日本一区二区免费在线观看视频 | 国产女同互慰高潮91漫画| 国内精品国产三级国产a久久| 日韩写真欧美这视频| 奇米影视7777精品一区二区| 欧美二区在线观看| 国产自产视频一区二区三区| 精品免费99久久| 国产激情视频一区二区三区欧美| 久久久久久免费毛片精品| 国产精品性做久久久久久| 国产精品欧美一区喷水| 一本久道久久综合中文字幕| 亚洲综合色成人| 日韩午夜在线播放| 国产盗摄一区二区| 亚洲色图视频网| 777xxx欧美| 国产91精品精华液一区二区三区 | 日本一区中文字幕| 久久精品视频免费| 日本精品裸体写真集在线观看| 亚洲超丰满肉感bbw| 日韩欧美一区二区视频| 国产精品亚洲视频| 亚洲国产综合人成综合网站| 正在播放亚洲一区| 成人午夜看片网址| 日韩在线一区二区三区| 国产日韩欧美在线一区| 欧美日韩在线不卡| 91国模大尺度私拍在线视频| 日韩精品一级二级| 中文字幕日本乱码精品影院| 欧美日本韩国一区二区三区视频 | 肉丝袜脚交视频一区二区| 精品国产污污免费网站入口| www.欧美日韩| 蜜桃传媒麻豆第一区在线观看| 欧美激情一区二区三区四区| 欧美色网站导航| 国产99久久久久久免费看农村| 亚洲狠狠爱一区二区三区| 久久久久国产精品厨房| 欧美丝袜自拍制服另类| 国产不卡在线一区| 秋霞影院一区二区| 亚洲一区二区三区在线播放| 亚洲成人综合视频| 国产日韩欧美麻豆| 制服丝袜成人动漫| 伊人色综合久久天天| 午夜久久久影院| 91免费看片在线观看| 国产日韩欧美在线一区| 日本亚洲视频在线| 欧美一三区三区四区免费在线看| 亚洲女人的天堂| 国产a久久麻豆| 在线观看91精品国产麻豆| 日韩免费性生活视频播放| 国产精品第五页| 91一区一区三区| 久久久亚洲精品石原莉奈| 秋霞av亚洲一区二区三| 欧美色老头old∨ideo| 久久狠狠亚洲综合| 欧美日韩一级片网站| 成人免费在线视频| 色综合久久66| 中文字幕一区二区三区视频| 欧美在线色视频| 欧美精彩视频一区二区三区| 国产高清在线观看免费不卡| 国产精品国产三级国产三级人妇 | 欧美精品日韩精品| 国产精品精品国产色婷婷| 亚洲精品视频一区| 日韩无一区二区| 在线视频你懂得一区| 狠狠色综合日日| 亚洲免费视频成人| 精品国产乱码久久| 成人国产一区二区三区精品| 亚洲精品视频一区| 91成人在线免费观看| 日韩高清不卡在线| 精品国产一区久久| 国产精品一线二线三线精华| 亚洲精品在线一区二区| 天天操天天综合网| 丝瓜av网站精品一区二区| 国产精品综合在线视频| 国产精品国模大尺度视频| 日本不卡一二三| 亚洲视频一区二区在线| 在线观看精品一区| 成人自拍视频在线观看| 亚洲天堂av老司机| 国产日韩影视精品| 在线视频一区二区三| 91污片在线观看| 日韩视频在线永久播放| 欧美激情一区二区三区全黄| 美女免费视频一区二区| 亚洲国产高清aⅴ视频| 蜜臀久久99精品久久久久宅男| 7777精品伊人久久久大香线蕉的| 欧美三级电影在线看| 2022国产精品视频| 国产福利精品一区| 久久久久久一级片| 中文字幕成人av| 六月丁香综合在线视频| 亚洲午夜电影网| 天天综合色天天综合| 免费一级欧美片在线观看| 国产精品一区二区三区99| 93久久精品日日躁夜夜躁欧美| 欧美视频在线不卡| 久久午夜国产精品| 樱桃国产成人精品视频| 免费成人在线网站| 99精品在线免费| 51精品久久久久久久蜜臀| 久久影院视频免费| 亚洲一区二区三区视频在线播放| 久久99精品久久久久久动态图 | 一区二区三国产精华液| 奇米影视7777精品一区二区| 成人久久久精品乱码一区二区三区| 精品视频在线免费| 国产精品久久久久久久久图文区| 视频一区视频二区中文| 成人97人人超碰人人99| 精品三级在线看| 亚洲成a人片在线不卡一二三区| 成人一区二区三区| 日韩网站在线看片你懂的| 一区二区三区在线影院| 高清国产一区二区三区| 欧美一区二区三区白人| 一卡二卡欧美日韩| 99精品黄色片免费大全| 久久久不卡网国产精品二区| 亚洲成人自拍一区| 色综合久久天天| 国产精品你懂的在线欣赏| 激情久久五月天| 欧美成人免费网站| 偷拍亚洲欧洲综合| 欧美午夜在线一二页| 亚洲人成精品久久久久| 成人夜色视频网站在线观看| 久久亚洲精品小早川怜子| 麻豆久久一区二区| 91精品福利在线一区二区三区| 亚洲成人av一区| 欧美日韩亚洲综合一区二区三区| 一区二区三区四区亚洲| www.欧美精品一二区| 国产精品久久久久久久久动漫| 成人免费不卡视频| 日韩美女精品在线| 色婷婷av一区二区三区大白胸| 伊人开心综合网|