|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.logging.cache.LocalConsoleArchiver
public class LocalConsoleArchiver
An implementation of a ConsoleArchiver for the local JVM. An Explorer or Server job will attach this archiver to a job node to capture console output from that node and it's children down to a node which is a different console archiver ( because it's a separate process or is getting console output from a remote node).
Constructor Summary | |
---|---|
LocalConsoleArchiver()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalConsoleArchiver()
Method Detail |
---|
public void addConsoleListener(LogListener l, Object component, long last, int history)
ConsoleArchiver
addConsoleListener
in interface ConsoleArchiver
l
- The logListener which will recieve the events.component
- The component whose console to receive events for.last
- The last event number recieved. 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()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |