|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.logging.console.LogConsoleHandler
public class LogConsoleHandler
This class is responsible of provinding LogRecord, it deals with LogReecord stored in a file with a serializedForm for performance issue.
Use one LogConsoleHandler for one log file
| Field Summary | |
|---|---|
protected boolean |
dontAdjust
a flag to block scroll bar adjustement events |
protected List<LineReaderUtil.LevelsLineReader> |
levelsReaders
list of LevelsReader |
protected LogMail |
logMail
the dialog to send mail |
protected LogConsoleModel |
model
ui model to be used in dialog |
protected PropertyChangeSupport |
propertyListeners
|
protected LineReader |
reader
the current line reader |
protected File |
readerDirectory
the directory where store readers |
protected org.nuiton.widget.StatusBar |
statusBar
the console status bar where to notify user events |
| Constructor Summary | |
|---|---|
LogConsoleHandler(LogConsoleModel model)
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
adjustmentValueChanged(AdjustmentEvent e)
|
protected void |
changeFilter()
|
void |
close()
stop the handler and all internal services |
protected void |
finalize()
|
protected LineReader |
getLevelReader(int levels)
|
protected LineReader |
getPatternReader(String searchText,
LineReader parent)
|
org.nuiton.widget.StatusBar |
getStatusBar()
|
void |
mouseWheelMoved(MouseWheelEvent e)
|
void |
openLogMail()
|
protected void |
openReader(LineReader reader)
|
void |
propertyChange(PropertyChangeEvent evt)
|
void |
read(long offset)
read the required frame from current reader |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
setStatusBar(org.nuiton.widget.StatusBar statusBar)
|
void |
start()
start the handler (will start all internal services required) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LineReader reader
protected List<LineReaderUtil.LevelsLineReader> levelsReaders
protected LogConsoleModel model
protected File readerDirectory
protected boolean dontAdjust
protected org.nuiton.widget.StatusBar statusBar
protected LogMail logMail
protected PropertyChangeSupport propertyListeners
| Constructor Detail |
|---|
public LogConsoleHandler(LogConsoleModel model)
throws IOException
IOException| Method Detail |
|---|
public void start()
throws IOException
IOException - if any
public void close()
throws Exception
Exception - if any problem while closing operation
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
public void read(long offset)
throws IOException
offset - the offset to use
IOException - if any problem while readingpublic void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerpublic void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged in interface AdjustmentListenerpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerprotected void changeFilter()
protected LineReader getPatternReader(String searchText,
LineReader parent)
protected LineReader getLevelReader(int levels)
throws IOException
IOException
protected void openReader(LineReader reader)
throws IOException
IOExceptionpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
public org.nuiton.widget.StatusBar getStatusBar()
public void setStatusBar(org.nuiton.widget.StatusBar statusBar)
public void openLogMail()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||