|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.jmx.client.RemoteLogPoller
public class RemoteLogPoller
A LogArchiver which maintains it's log archives by polling a JMX MBean for log information.
| Field Summary |
|---|
| Fields inherited from interface org.oddjob.logging.LogArchiver |
|---|
MAX_HISTORY, NO_LOG_AVAILABLE |
| Constructor Summary | |
|---|---|
RemoteLogPoller(Object root,
int consoleHistoryLines,
int logHistoryLines)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addConsoleListener(LogListener l,
Object component,
long last,
int max)
Add a listener to the archiver which will receive all missed events. |
void |
addLogListener(LogListener l,
Object component,
LogLevel level,
long last,
int max)
Add a listener to the archiver which will receive all missed events. |
String |
consoleIdFor(Object component)
Get the console id for a given component. |
long |
getLogPollingInterval()
|
void |
onDestroy()
|
void |
poll()
Poll a remote MBean for Log Messages. |
void |
removeConsoleListener(LogListener l,
Object component)
Remove the LogListener. |
void |
removeLogListener(LogListener l,
Object component)
Remove the LogListener. |
void |
run()
|
void |
setLogPollingInterval(long logPollingInterval)
|
void |
stop()
Stop polling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteLogPoller(Object root,
int consoleHistoryLines,
int logHistoryLines)
| Method Detail |
|---|
public void addLogListener(LogListener l,
Object component,
LogLevel level,
long last,
int max)
LogArchiverEvent numbers begin at 0. To recieve all events, last must be -1.
addLogListener in interface LogArchiverl - The logListener which will recieve the events.level - The level of events required.last - The last event number recieved. The LogArchive will
not send messages from before this number.max - The maximum messages to send up to the most recent.
public void removeLogListener(LogListener l,
Object component)
LogArchiver
removeLogListener in interface LogArchiverl - The LogListener.
public void addConsoleListener(LogListener l,
Object component,
long last,
int max)
ConsoleArchiver
addConsoleListener in interface ConsoleArchiverl - 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.max - The maximum messages to send up to the most recent.
public void removeConsoleListener(LogListener l,
Object component)
ConsoleArchiver
removeConsoleListener in interface ConsoleArchiverl - The LogListener.public String consoleIdFor(Object component)
ConsoleArchiver
consoleIdFor in interface ConsoleArchivercomponent - The component.
public long getLogPollingInterval()
public void setLogPollingInterval(long logPollingInterval)
public void poll()
public void run()
run in interface Runnablepublic void stop()
public void onDestroy()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||