|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.logging.AbstractPollingArchiver
A LogArchiver which maintains it's log archives by polling.
This archiver will remove a component from it's list of components to poll when no more listeners are listening to it.
This archiver will only poll the first component where many components share the same archive.
| Constructor Summary | |
AbstractPollingArchiver(AbstractArchiverCache cache)
Constructor. |
|
| Method Summary | |
void |
addArchiveListener(LogListener l,
java.lang.Object component,
LogLevel level,
long last,
int max)
Add a LogListener for the given component. |
abstract java.lang.String |
archiveFor(java.lang.Object component)
|
void |
destroy()
|
void |
poll()
Poll for Log Messages. |
void |
removeArchiveListener(LogListener l,
java.lang.Object component)
Remove the LogListener for the given component. |
abstract LogEvent[] |
retrieveEvents(java.lang.Object component,
long last,
int max)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractPollingArchiver(AbstractArchiverCache cache)
| Method Detail |
public void addArchiveListener(LogListener l,
java.lang.Object component,
LogLevel level,
long last,
int max)
l - The LogListener.component - The component.level - The level.last - The last message number required.max - The maximum history.
public void removeArchiveListener(LogListener l,
java.lang.Object component)
l - The LogListener.component - The component.public abstract java.lang.String archiveFor(java.lang.Object component)
public void poll()
public abstract LogEvent[] retrieveEvents(java.lang.Object component,
long last,
int max)
public void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||