Package org.oddjob.logging.cache
Interface LogArchiverCache
- All Known Implementing Classes:
AbstractArchiverCache,LazyArchiverCache,StructuralArchiverCache
public interface LogArchiverCache
Maintains a collection of
LogArchives by archive name.- Author:
- rob
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an event to the cache.voidaddLogListener(LogListener l, Object component, LogLevel level, long last, int history) Add a listener.voiddestroy()longgetLastMessageNumber(String archive) intbooleanhasArchive(String archive) Does this Acchiver contain the given archive.voidremoveLogListener(LogListener l, Object component) Remove a listener.
-
Method Details
-
hasArchive
Does this Acchiver contain the given archive.- Parameters:
archive- The archive.- Returns:
- true if it does, false if it doesn't.
-
getLastMessageNumber
-
addLogListener
Add a listener.- Parameters:
l- The listenercomponent- The component the log archive is for.level- The levellast- The last message number.history- The max messages required.
-
removeLogListener
Remove a listener.- Parameters:
l- The listener.component- The component the log archive is for.
-
getMaxHistory
int getMaxHistory() -
addEvent
Add an event to the cache.- Parameters:
archive- The archive.level- The level.message- The message.
-
destroy
void destroy()
-