public interface EventContainer extends SortTableModel, LoggerNameModel
Modifier and Type | Method and Description |
---|---|
void |
addEventCountListener(EventCountListener listener)
Adds an EventCountListener, to be notified when the # of events changes
|
void |
addNewKeyListener(NewKeyListener l)
Adds a NewKeyListener to be notified when unique Key (Property keys)
arrive into this EventContainer
|
void |
addPropertyChangeListener(PropertyChangeListener l) |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l) |
void |
clearModel()
Clears the model completely
|
int |
findColoredRow(int currentRow,
boolean forward)
Determine next row with a non-default color
|
void |
fireRowUpdated(int row,
boolean checkForNewColumns)
A row was updated
|
void |
fireTableEvent(int begin,
int end,
int count)
Fire appropriate table update events for the range.
|
List |
getAllEvents()
Returns a copied list of all the event in the model.
|
List |
getFilteredEvents()
Returns a copied list containing the events in the model with filter applied
|
List |
getMatchingEvents(org.apache.log4j.rule.Rule rule) |
int |
getMaxSize()
If this container is in Cyclic mode, returns the Size of the cyclic buffer,
otherwise this method throws an IllegalStateException, when in unlimited
mode, this method has no meaning.
|
LoggingEventWrapper |
getRow(int row)
Returns the vector representing the row.
|
int |
getRowIndex(LoggingEventWrapper loggingEventWrapper)
Returns the index of the LoggingEventWrapper
|
int |
getSearchMatchCount()
Return the visible search match count
|
boolean |
isAddRow(LoggingEventWrapper e)
Adds a row to the model.
|
int |
locate(org.apache.log4j.rule.Rule rule,
int startRow,
boolean searchForward)
Locates a row number, starting from startRow, matching the rule provided
|
void |
notifyCountListeners()
Allow a forced notification of the EventCountListeners
|
void |
reFilter()
Force a re-processing of the table layout
|
void |
removeNewKeyListener(NewKeyListener l)
Removes a listener from being notified of NewKey events.
|
void |
removePropertyFromEvents(String propName)
Remove property from all events in container
|
void |
setCyclic(boolean cyclic)
Configures this model to use Cyclic or non-cyclic models.
|
void |
setRuleMediator(RuleMediator ruleMediator)
Sets the RuleMediator in operation
|
int |
size()
Returns the total number of events currently in the model (all, not just filtered)
|
int |
updateEventsWithFindRule(org.apache.log4j.rule.Rule findRule)
Evaluate all events against the find rule
|
isSortable, isSortEnabled, sort, sortColumn
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
addLoggerName, addLoggerNameListener, getLoggerNames, removeLoggerNameListener, reset
void addEventCountListener(EventCountListener listener)
listener
- void addPropertyChangeListener(PropertyChangeListener l)
void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
void addNewKeyListener(NewKeyListener l)
l
- void removeNewKeyListener(NewKeyListener l)
l
- void clearModel()
List getMatchingEvents(org.apache.log4j.rule.Rule rule)
void setCyclic(boolean cyclic)
cyclic
- int getMaxSize()
IllegalStateException
- if this containers isCyclic() method returns false.int locate(org.apache.log4j.rule.Rule rule, int startRow, boolean searchForward)
rule
- startRow
- searchForward
- List getAllEvents()
List getFilteredEvents()
int size()
LoggingEventWrapper getRow(int row)
boolean isAddRow(LoggingEventWrapper e)
e
- eventvoid fireTableEvent(int begin, int end, int count)
void fireRowUpdated(int row, boolean checkForNewColumns)
row
- checkForNewColumns
- void notifyCountListeners()
void reFilter()
void setRuleMediator(RuleMediator ruleMediator)
ruleMediator
- int getRowIndex(LoggingEventWrapper loggingEventWrapper)
loggingEventWrapper
- void removePropertyFromEvents(String propName)
propName
- the property name to removeint updateEventsWithFindRule(org.apache.log4j.rule.Rule findRule)
findRule
- int findColoredRow(int currentRow, boolean forward)
currentRow
- forward
- int getSearchMatchCount()
Copyright © 2002-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.