public class MultipleFileLogReader extends AbstractLogReader implements LogReader
Modifier and Type | Class and Description |
---|---|
class |
MultipleFileLogReader.DateRangeFilenameFilter
Custom filename filter
|
Constructor and Description |
---|
MultipleFileLogReader() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the log reader and release all used resources.
|
Date |
getEndDate()
Return the end date
|
Date |
getMaxDate()
Max (latest) available date of the log records.
|
Date |
getMinDate()
Min (earliest) available date of the log records.
|
Date |
getStartDate()
Return the start date
|
boolean |
hasNext() |
void |
init()
Initialize the log reader.
|
boolean |
isMoreAvailable()
Check if more records are available after limit is reached.
|
LogRecord |
next() |
void |
setAppender(ch.qos.logback.core.Appender<?> appender)
Logging appender associated with this reader.
|
void |
setEndDate(Date endDate)
Set the end date
|
void |
setStartDate(Date startDate)
Set start date
|
boolean |
supportsDateRanges()
Test if this LogReader implementation supports date-based records filtering.
|
getAppender, getLevel, getLimit, getOffset, getThread, getThreadNames, remove, setLevel, setLimit, setOffset, setThread, supportsLevelFilter, supportsThreadFilter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAppender, getLevel, getLimit, getOffset, getThread, getThreadNames, setLevel, setLimit, setOffset, setThread, supportsLevelFilter, supportsThreadFilter
forEachRemaining, remove
public boolean supportsDateRanges()
LogReader
supportsDateRanges
in interface LogReader
supportsDateRanges
in class AbstractLogReader
public void setAppender(ch.qos.logback.core.Appender<?> appender)
LogReader
setAppender
in interface LogReader
setAppender
in class AbstractLogReader
appender
- logging appender associated with this readerpublic void init() throws Exception
LogReader
public boolean hasNext()
hasNext
in interface Iterator<LogRecord>
hasNext
in class AbstractLogReader
public boolean isMoreAvailable()
LogReader
isMoreAvailable
in interface LogReader
public LogRecord next()
next
in interface Iterator<LogRecord>
next
in class AbstractLogReader
public void destroy() throws IOException
LogReader
destroy
in interface LogReader
IOException
public Date getStartDate()
getStartDate
in interface LogReader
getStartDate
in class AbstractLogReader
public void setStartDate(Date startDate)
setStartDate
in interface LogReader
setStartDate
in class AbstractLogReader
startDate
- The startDate to set.public Date getEndDate()
getEndDate
in interface LogReader
getEndDate
in class AbstractLogReader
public void setEndDate(Date endDate)
setEndDate
in interface LogReader
setEndDate
in class AbstractLogReader
endDate
- The endDate to set.public Date getMaxDate()
LogReader
getMaxDate
in interface LogReader
getMaxDate
in class AbstractLogReader
public Date getMinDate()
LogReader
getMinDate
in interface LogReader
getMinDate
in class AbstractLogReader
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.