public class LocalConsoleArchiver extends java.lang.Object implements ConsoleArchiver
Constructor and Description |
---|
LocalConsoleArchiver() |
Modifier and Type | Method and Description |
---|---|
void |
addConsoleListener(LogListener l,
java.lang.Object component,
long last,
int history)
Add a listener to the archiver which will receive all missed
events.
|
java.lang.String |
consoleIdFor(java.lang.Object component)
Get the console id for a given component.
|
void |
onDestroy()
Does nothing at the moment.
|
void |
removeConsoleListener(LogListener l,
java.lang.Object component)
Remove the LogListener.
|
public void addConsoleListener(LogListener l, java.lang.Object component, long last, int history)
ConsoleArchiver
addConsoleListener
in interface ConsoleArchiver
l
- The logListener which will receive the events.component
- The component whose console to receive events for.last
- The last event number received. The LogArchive will
not send messages from before this number.history
- The maximum messages to send up to the most recent.public void removeConsoleListener(LogListener l, java.lang.Object component)
ConsoleArchiver
removeConsoleListener
in interface ConsoleArchiver
l
- The LogListener.public java.lang.String consoleIdFor(java.lang.Object component)
ConsoleArchiver
consoleIdFor
in interface ConsoleArchiver
component
- The component.public void onDestroy()