public class LocalConsoleArchiver extends Object implements ConsoleArchiver
Constructor and Description |
---|
LocalConsoleArchiver() |
Modifier and Type | Method and Description |
---|---|
void |
addConsoleListener(LogListener l,
Object component,
long last,
int history)
Add a listener to the archiver which will receive all missed
events.
|
String |
consoleIdFor(Object component)
Get the console id for a given component.
|
void |
onDestroy()
Does nothing at the moment.
|
void |
removeConsoleListener(LogListener l,
Object component)
Remove the LogListener.
|
public void addConsoleListener(LogListener l, 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, Object component)
ConsoleArchiver
removeConsoleListener
in interface ConsoleArchiver
l
- The LogListener.public String consoleIdFor(Object component)
ConsoleArchiver
consoleIdFor
in interface ConsoleArchiver
component
- The component.public void onDestroy()