亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美色综合久久| 欧美激情一区二区在线| 久久这里只有精品6| 一色屋精品亚洲香蕉网站| 亚洲高清免费在线| 国产成人午夜精品影院观看视频 | 国产综合色精品一区二区三区| 成人听书哪个软件好| 4438x亚洲最大成人网| 国产精品色在线| 久88久久88久久久| 欧美精品在线一区二区| 亚洲精品videosex极品| 国产成人综合网站| 欧美精品一区二区三区蜜桃视频 | 亚洲天堂成人在线观看| 国产乱码字幕精品高清av| 69堂国产成人免费视频| 一区二区三区毛片| 91在线高清观看| 中文乱码免费一区二区| 韩国av一区二区三区四区| 日韩午夜av电影| 全部av―极品视觉盛宴亚洲| 在线观看不卡一区| 亚洲精品乱码久久久久久黑人| 成人手机在线视频| 国产农村妇女毛片精品久久麻豆 | 色老汉一区二区三区| 国产精品久久久久久久久图文区| 狠狠色丁香久久婷婷综合_中 | 亚洲日本韩国一区| 91网上在线视频| 成人免费在线视频| 99久久久久免费精品国产| 亚洲欧洲av另类| 91亚洲精华国产精华精华液| 综合色中文字幕| 色婷婷久久久综合中文字幕| 亚洲精品自拍动漫在线| 色综合一个色综合| 亚洲一区二区在线观看视频| 在线视频观看一区| 天堂蜜桃91精品| 日韩久久久精品| 韩国精品在线观看| 国产精品免费丝袜| 日本道精品一区二区三区| 亚洲无线码一区二区三区| 欧美日本国产一区| 蓝色福利精品导航| 久久久91精品国产一区二区三区| 国产+成+人+亚洲欧洲自线| 亚洲欧洲99久久| 777奇米四色成人影色区| 久久电影网电视剧免费观看| 日本一区二区三区四区| 色综合中文字幕| 日韩av午夜在线观看| 久久蜜桃香蕉精品一区二区三区| 国产成人一区二区精品非洲| 亚洲激情综合网| 日韩女优电影在线观看| 成人黄色a**站在线观看| 亚洲精品写真福利| 欧美成人a∨高清免费观看| 国产成人精品亚洲午夜麻豆| 亚洲综合成人在线视频| 精品国产免费一区二区三区香蕉| 成人网男人的天堂| 天天综合色天天综合色h| 国产亲近乱来精品视频| 欧美日韩在线播| 国产精品白丝av| 亚洲国产精品久久久久秋霞影院| 久久一区二区视频| 欧美性受xxxx黑人xyx| 国产精品99精品久久免费| 一区二区三国产精华液| 2020国产精品自拍| 欧美亚洲综合色| 成人丝袜18视频在线观看| 日本欧美一区二区| 亚洲人成伊人成综合网小说| 日韩欧美激情四射| 欧美三级午夜理伦三级中视频| 国产精品18久久久久久久久| 亚洲午夜视频在线观看| 国产精品久久久久久久第一福利 | 欧美日韩成人激情| av男人天堂一区| 韩国一区二区在线观看| 视频一区中文字幕国产| 1024成人网| 国产网站一区二区三区| 欧美一区二区三区日韩视频| 在线一区二区三区做爰视频网站| 国精产品一区一区三区mba视频 | av毛片久久久久**hd| 国产精品亚洲第一| 麻豆91精品视频| 视频一区在线视频| 亚洲gay无套男同| 亚洲精品国产a| 亚洲美女精品一区| 中文字幕一区二区三区av| 国产三区在线成人av| 2017欧美狠狠色| 精品国产一区二区三区忘忧草| 91麻豆精品国产91久久久更新时间| 日本久久电影网| 在线一区二区观看| 在线影视一区二区三区| 在线视频中文字幕一区二区| 99久久国产综合色|国产精品| 成人亚洲一区二区一| 国产福利一区二区三区在线视频| 国产一区二区三区| 韩国av一区二区三区在线观看| 久久www免费人成看片高清| 久久精品国产久精国产爱| 日本vs亚洲vs韩国一区三区 | 免费在线欧美视频| 亚洲免费色视频| 一区二区三区成人| 亚洲一区二区三区自拍| 亚洲综合久久久| 天天影视涩香欲综合网 | 日韩精品资源二区在线| 精品久久久久久久人人人人传媒 | 欧美亚洲动漫精品| 午夜精品成人在线视频| 国产99一区视频免费| 中文字幕一区视频| 亚洲欧美日韩国产综合在线| 成人免费在线播放视频| 亚洲一区二区高清| 国产精品福利一区| 精品久久久三级丝袜| 久久久91精品国产一区二区三区| 日本一区二区三区四区在线视频 | 国产福利精品导航| 色婷婷久久久亚洲一区二区三区| 欧美婷婷六月丁香综合色| 7777精品伊人久久久大香线蕉最新版 | 欧美一区二区视频观看视频| 精品动漫一区二区三区在线观看| 国产日韩亚洲欧美综合| 亚洲一二三级电影| 韩国毛片一区二区三区| 91视频观看免费| 日韩一区二区三区观看| 国产亚洲精品久| 一区二区三区影院| 九九国产精品视频| 色婷婷激情久久| 精品久久久久av影院| 久久免费视频色| 日韩一区二区精品葵司在线| 国产日韩精品一区二区浪潮av| 一级精品视频在线观看宜春院 | 国产成人免费在线视频| 精品视频一区三区九区| 久久夜色精品国产噜噜av| 亚洲国产婷婷综合在线精品| 国产suv一区二区三区88区| 欧美老女人在线| 国产精品第五页| 国产一区二区在线影院| 欧美三级电影一区| 最新国产精品久久精品| 精品亚洲国产成人av制服丝袜| 91久久精品日日躁夜夜躁欧美| 久久蜜桃av一区精品变态类天堂| 亚洲综合在线电影| 成人丝袜视频网| 2021国产精品久久精品| 午夜精品久久久久| 日本精品一区二区三区高清 | av动漫一区二区| 久久精品综合网| 免费看欧美女人艹b| 欧美日韩视频不卡| 亚洲猫色日本管| 99久久国产免费看| 国产欧美一区二区三区沐欲| 日本不卡视频一二三区| 欧美日韩日日骚| 亚洲自拍另类综合| 色妹子一区二区| 亚洲人妖av一区二区| 99久久综合精品| 国产精品久久久久影院亚瑟| 国产精品一二三四五| 久久久久久久免费视频了| 精品亚洲porn| wwwwww.欧美系列| 国产美女精品人人做人人爽| 精品久久久影院| 国产伦精品一区二区三区在线观看|