public interface LogArchiverCache
LogArchive
s by archive name.Modifier and Type | Method and Description |
---|---|
void |
addEvent(java.lang.String archive,
LogLevel level,
java.lang.String message)
Add an event to the cache.
|
void |
addLogListener(LogListener l,
java.lang.Object component,
LogLevel level,
long last,
int history)
Add a listener.
|
void |
destroy() |
long |
getLastMessageNumber(java.lang.String archive) |
int |
getMaxHistory() |
boolean |
hasArchive(java.lang.String archive)
Does this Acchiver contain the given archive.
|
void |
removeLogListener(LogListener l,
java.lang.Object component)
Remove a listener.
|
boolean hasArchive(java.lang.String archive)
archive
- The archive.long getLastMessageNumber(java.lang.String archive)
void addLogListener(LogListener l, java.lang.Object component, LogLevel level, long last, int history)
l
- The listenerarchive
- The archivelevel
- The levellast
- The last message number.history
- The max messages required.void removeLogListener(LogListener l, java.lang.Object component)
l
- The listener.archive
- The archive.int getMaxHistory()
void addEvent(java.lang.String archive, LogLevel level, java.lang.String message)
archive
- The archive.level
- The level.message
- The message.void destroy()