Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » lf5 » viewer » [javadoc | source]
org.apache.log4j.lf5.viewer
public class: LogBrokerMonitor [javadoc | source]
java.lang.Object
   org.apache.log4j.lf5.viewer.LogBrokerMonitor
LogBrokerMonitor .
Nested Class Summary:
class  LogBrokerMonitor.LogBrokerMonitorWindowAdaptor   
Field Summary
public static final  String DETAILED_VIEW     
protected  JFrame _logMonitorFrame     
protected  int _logMonitorFrameWidth     
protected  int _logMonitorFrameHeight     
protected  LogTable _table     
protected  CategoryExplorerTree _categoryExplorerTree     
protected  String _searchText     
protected  String _NDCTextFilter     
protected  LogLevel _leastSevereDisplayedLogLevel     
protected  JScrollPane _logTableScrollPane     
protected  JLabel _statusLabel     
protected  Object _lock     
protected  JComboBox _fontSizeCombo     
protected  int _fontSize     
protected  String _fontName     
protected  String _currentView     
protected  boolean _loadSystemFonts     
protected  boolean _trackTableScrollPane     
protected  Dimension _lastTableViewportSize     
protected  boolean _callSystemExitOnClose     
protected  List _displayedLogBrokerProperties     
protected  Map _logLevelMenuItems     
protected  Map _logTableColumnMenuItems     
protected  List _levels     
protected  List _columns     
protected  boolean _isDisposed     
protected  ConfigurationManager _configurationManager     
protected  MRUFileManager _mruFileManager     
protected  File _fileLocation     
Constructor:
 public LogBrokerMonitor(List logLevels) 
    Construct a LogBrokerMonitor.
Method from org.apache.log4j.lf5.viewer.LogBrokerMonitor Summary:
addDisplayedProperty,   addMessage,   addTableModelProperties,   centerFrame,   changeFontSizeCombo,   clearDetailTextArea,   closeAfterConfirm,   createAllLogLevelsMenuItem,   createAllLogTableColumnsMenuItem,   createCloseMI,   createConfigureMaxRecords,   createConfigureMenu,   createConfigureReset,   createConfigureSave,   createDetailTextArea,   createEditFindMI,   createEditFindNextMI,   createEditMenu,   createEditRestoreAllNDCMI,   createEditSortNDCMI,   createExitMI,   createFileMenu,   createHelpMenu,   createHelpProperties,   createLogLevelColorMenu,   createLogLevelCombo,   createLogLevelMenu,   createLogRecordFilter,   createLogTableColumnMenuItem,   createMRUFileListMI,   createMenuBar,   createMenuItem,   createNDCLogRecordFilter,   createNoLogLevelsMenuItem,   createNoLogTableColumnsMenuItem,   createOpenMI,   createOpenURLMI,   createResetLogLevelColorMenuItem,   createStatusArea,   createSubMenuItem,   createToolBar,   createViewMenu,   dispose,   findRecord,   findSearchText,   getBaseFrame,   getCallSystemExitOnClose,   getCategoryExplorerTree,   getDateFormatManager,   getFirstSelectedRow,   getLogLevelMenuItems,   getLogLevels,   getLogTableColumnMenuItem,   getLogTableColumnMenuItems,   getLogTableColumns,   getMenuItem,   getNDCTextFilter,   getRecordsDisplayedMessage,   getStatusText,   getTableColumnMenuItem,   hide,   initComponents,   loadLogFile,   loadLogFile,   makeLogTableListenToCategoryExplorer,   matches,   pause,   refresh,   refreshDetailTextArea,   requestClose,   requestExit,   requestOpen,   requestOpenMRU,   requestOpenURL,   resetConfiguration,   saveConfiguration,   selectAllLogLevels,   selectAllLogTableColumns,   selectRow,   setCallSystemExitOnClose,   setDateFormatManager,   setFontSize,   setFontSize,   setFontSizeSilently,   setFrameSize,   setLeastSevereDisplayedLogLevel,   setMaxNumberOfLogRecords,   setMaxRecordConfiguration,   setNDCLogRecordFilter,   setNDCTextFilter,   setSearchText,   setTitle,   setView,   show,   show,   showLogLevelColorChangeDialog,   showPropertiesDialog,   sortByNDC,   trackTableScrollPane,   updateFrameSize,   updateMRUList,   updateStatusLabel,   updateView
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.lf5.viewer.LogBrokerMonitor Detail:
 public  void addDisplayedProperty(Object messageLine) 
 public  void addMessage(LogRecord lr) 
    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.
 protected  void addTableModelProperties() 
 protected  void centerFrame(JFrame frame) 
 protected int changeFontSizeCombo(JComboBox box,
    int requestedSize) 
    Changes the font selection in the combo box and returns the size actually selected.
 protected  void clearDetailTextArea() 
 protected  void closeAfterConfirm() 
 protected JMenuItem createAllLogLevelsMenuItem() 
 protected JMenuItem createAllLogTableColumnsMenuItem() 
 protected JMenuItem createCloseMI() 
 protected JMenuItem createConfigureMaxRecords() 
 protected JMenu createConfigureMenu() 
 protected JMenuItem createConfigureReset() 
 protected JMenuItem createConfigureSave() 
 protected JTextArea createDetailTextArea() 
 protected JMenuItem createEditFindMI() 
 protected JMenuItem createEditFindNextMI() 
 protected JMenu createEditMenu() 
 protected JMenuItem createEditRestoreAllNDCMI() 
 protected JMenuItem createEditSortNDCMI() 
 protected JMenuItem createExitMI() 
 protected JMenu createFileMenu() 
 protected JMenu createHelpMenu() 
 protected JMenuItem createHelpProperties() 
 protected JMenu createLogLevelColorMenu() 
 protected JComboBox createLogLevelCombo() 
 protected JMenu createLogLevelMenu() 
 protected LogRecordFilter createLogRecordFilter() 
 protected JCheckBoxMenuItem createLogTableColumnMenuItem(LogTableColumn column) 
 protected  void createMRUFileListMI(JMenu menu) 
    Creates a Most Recently Used file list to be displayed in the File menu
 protected JMenuBar createMenuBar() 
 protected JCheckBoxMenuItem createMenuItem(LogLevel level) 
 protected LogRecordFilter createNDCLogRecordFilter(String text) 
 protected JMenuItem createNoLogLevelsMenuItem() 
 protected JMenuItem createNoLogTableColumnsMenuItem() 
 protected JMenuItem createOpenMI() 
    Menu item added to allow log files to be opened with the LF5 GUI.
 protected JMenuItem createOpenURLMI() 
    Menu item added to allow log files loaded from a URL to be opened by the LF5 GUI.
 protected JMenuItem createResetLogLevelColorMenuItem() 
 protected JPanel createStatusArea() 
 protected JMenuItem createSubMenuItem(LogLevel level) 
 protected JToolBar createToolBar() 
 protected JMenu createViewMenu() 
 public  void dispose() 
    Dispose of the frame for the LogBrokerMonitor.
 protected int findRecord(int startRow,
    String searchText,
    List records) 
 protected  void findSearchText() 
 public JFrame getBaseFrame() 
 public boolean getCallSystemExitOnClose() 
    Get the value of whether or not System.exit() will be called when the LogBrokerMonitor is closed.
 public CategoryExplorerTree getCategoryExplorerTree() 
 public DateFormatManager getDateFormatManager() 
    Get the DateFormatManager for formatting dates.
 protected int getFirstSelectedRow() 
 public Map getLogLevelMenuItems() 
 protected Iterator getLogLevels() 
 protected JCheckBoxMenuItem getLogTableColumnMenuItem(LogTableColumn column) 
 public Map getLogTableColumnMenuItems() 
 protected Iterator getLogTableColumns() 
 protected JCheckBoxMenuItem getMenuItem(LogLevel level) 
 public String getNDCTextFilter() 
 protected String getRecordsDisplayedMessage() 
 protected String getStatusText(int displayedRows,
    int totalRows) 
 public JCheckBoxMenuItem getTableColumnMenuItem(LogTableColumn column) 
 public  void hide() 
    Hide the frame for the LogBrokerMonitor.
 protected  void initComponents() 
 protected boolean loadLogFile(File file) 
    Loads and parses a log file.
 protected boolean loadLogFile(URL url) 
    Loads a parses a log file running on a server.
 protected  void makeLogTableListenToCategoryExplorer() 
 protected boolean matches(LogRecord record,
    String text) 
    Check to see if the any records contain the search string. Searching now supports NDC messages and date.
 protected  void pause(int millis) 
 protected  void refresh(JTextArea textArea) 
    When the fontsize of a JTextArea is changed, the word-wrapped lines may become garbled. This method clears and resets the text of the text area.
 protected  void refreshDetailTextArea() 
 protected  void requestClose() 
 protected  void requestExit() 
 protected  void requestOpen() 
    Uses a JFileChooser to select a file to opened with the LF5 GUI.
 protected  void requestOpenMRU(ActionEvent e) 
    Opens a file in the MRU list.
 protected  void requestOpenURL() 
    Uses a Dialog box to accept a URL to a file to be opened with the LF5 GUI.
 protected  void resetConfiguration() 
 protected  void saveConfiguration() 
 protected  void selectAllLogLevels(boolean selected) 
 protected  void selectAllLogTableColumns(boolean selected) 
 protected  void selectRow(int foundRow) 
 public  void setCallSystemExitOnClose(boolean callSystemExitOnClose) 
    Set the value of whether or not System.exit() will be called when the LogBrokerMonitor is closed.
 public  void setDateFormatManager(DateFormatManager dfm) 
    Set the date format manager for formatting dates.
 public  void setFontSize(int fontSize) 
 protected  void setFontSize(Component component,
    int fontSize) 
 protected  void setFontSizeSilently(int fontSize) 
    Does not update gui or cause any events to be fired.
 public  void setFrameSize(int width,
    int height) 
 protected  void setLeastSevereDisplayedLogLevel(LogLevel level) 
 public  void setMaxNumberOfLogRecords(int maxNumberOfLogRecords) 
 protected  void setMaxRecordConfiguration() 
 public  void setNDCLogRecordFilter(String textFilter) 
 protected  void setNDCTextFilter(String text) 
 protected  void setSearchText(String text) 
 public  void setTitle(String title) 
 protected  void setView(String viewString,
    LogTable table) 
 public  void show() 
 public  void show(int delay) 
    Show the frame for the LogBrokerMonitor. Dispatched to the swing thread.
 protected  void showLogLevelColorChangeDialog(JMenuItem result,
    LogLevel level) 
 protected  void showPropertiesDialog(String title) 
 protected  void sortByNDC() 
 protected  void trackTableScrollPane() 
Deprecated! tracking - is now done automatically.

    Ensures that the Table's ScrollPane Viewport will "track" with updates to the Table. When the vertical scroll bar is at its bottom anchor and tracking is enabled then viewport will stay at the bottom most point of the component. The purpose of this feature is to allow a developer to watch the table as messages arrive and not have to scroll after each new message arrives. When the vertical scroll bar is at any other location, then no tracking will happen.
 protected  void updateFrameSize() 
 protected  void updateMRUList() 
    Removes old file list and creates a new file list with the updated MRU list.
 protected  void updateStatusLabel() 
 protected List updateView()