public interface LogArchive
Modifier and Type | Method and Description |
---|---|
void |
addListener(LogListener logListener,
LogLevel level,
long last,
int history)
Add a listener.
|
java.lang.String |
getArchive()
Get the archive name.
|
long |
getLastMessageNumber()
Get the last message number in this archive.
|
int |
getMaxHistory()
Get the maximum number archive history lines supported.
|
boolean |
removeListener(LogListener l)
Remove a listener.
|
LogEvent[] |
retrieveEvents(long from,
int max)
Retrieve events from the archive.
|
long getLastMessageNumber()
LogEvent[] retrieveEvents(long from, int max)
from
- From message numbermax
- The maximum number to retreive.void addListener(LogListener logListener, LogLevel level, long last, int history)
logListener
- The listener.level
- The level.last
- The last message number this listener requires.history
- The maximum lines this listener requires.boolean removeListener(LogListener l)
l
- The listener.java.lang.String getArchive()
int getMaxHistory()