Package org.oddjob.logging.cache
Class LocalConsoleArchiver
java.lang.Object
org.oddjob.logging.cache.LocalConsoleArchiver
- All Implemented Interfaces:
ConsoleArchiver
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).
- Author:
- Rob Gordon.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConsoleListener(LogListener l, Object component, long last, int history) Add a listener to the archiver which will receive all missed events.consoleIdFor(Object component) Get the console id for a given component.voidDoes nothing at the moment.voidremoveConsoleListener(LogListener l, Object component) Remove the LogListener.
-
Constructor Details
-
LocalConsoleArchiver
public LocalConsoleArchiver()
-
-
Method Details
-
addConsoleListener
Description copied from interface:ConsoleArchiverAdd a listener to the archiver which will receive all missed events. The idea of receiving only missed event is to minimise network traffic when used remotely.- Specified by:
addConsoleListenerin interfaceConsoleArchiver- Parameters:
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.
-
removeConsoleListener
Description copied from interface:ConsoleArchiverRemove the LogListener.- Specified by:
removeConsoleListenerin interfaceConsoleArchiver- Parameters:
l- The LogListener.
-
consoleIdFor
Description copied from interface:ConsoleArchiverGet the console id for a given component.- Specified by:
consoleIdForin interfaceConsoleArchiver- Parameters:
component- The component.- Returns:
- The console id.
-
onDestroy
public void onDestroy()Does nothing at the moment.
-