Class AbstractLogReader
- java.lang.Object
-
- org.eclipse.rdf4j.common.logging.base.AbstractLogReader
-
- Direct Known Subclasses:
FileLogReader
,LogReaderBase
,MultipleFileLogReader
public abstract class AbstractLogReader extends Object implements LogReader
Abstract log reader
-
-
Constructor Summary
Constructors Constructor Description AbstractLogReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ch.qos.logback.core.Appender<?>
getAppender()
Logging appender associated with this reader.Date
getEndDate()
End (latest) date of of the log records returned by this log reader.LogLevel
getLevel()
Level of the log records returned by this log reader.int
getLimit()
Get the limit.Date
getMaxDate()
Max (latest) available date of the log records.Date
getMinDate()
Min (earliest) available date of the log records.int
getOffset()
Get the offsetDate
getStartDate()
Start (earliest) date of the log records returned by this log reader.String
getThread()
Thread name of the log records returned by this log reader.List<String>
getThreadNames()
All available thread names of the log records.abstract boolean
hasNext()
abstract LogRecord
next()
void
remove()
void
setAppender(ch.qos.logback.core.Appender<?> appender)
Logging appender associated with this reader.void
setEndDate(Date date)
End (latest) date of of the log records returned by this log reader.void
setLevel(LogLevel level)
Level of the log records returned by this log reader.void
setLimit(int limit)
Set the limitvoid
setOffset(int offset)
Set the offsetvoid
setStartDate(Date date)
Start (earliest) date of the log records returned by this log reader.void
setThread(String threadname)
Thread name of the log records returned by this log reader.boolean
supportsDateRanges()
Test if this LogReader implementation supports date-based records filtering.boolean
supportsLevelFilter()
Test if this LogReader implementation supports level-based records filtering.boolean
supportsThreadFilter()
Test if this LogReader implementation supports thread-based records filtering.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface org.eclipse.rdf4j.common.logging.LogReader
destroy, init, isMoreAvailable
-
-
-
-
Method Detail
-
setAppender
public void setAppender(ch.qos.logback.core.Appender<?> appender)
Description copied from interface:LogReader
Logging appender associated with this reader.- Specified by:
setAppender
in interfaceLogReader
- Parameters:
appender
- logging appender associated with this reader
-
getAppender
public ch.qos.logback.core.Appender<?> getAppender()
Description copied from interface:LogReader
Logging appender associated with this reader.- Specified by:
getAppender
in interfaceLogReader
- Returns:
- logging appender associated with this reader.
-
getEndDate
public Date getEndDate()
Description copied from interface:LogReader
End (latest) date of of the log records returned by this log reader.- Specified by:
getEndDate
in interfaceLogReader
- Returns:
- End date of the log records or 'null' if no end date has been set
-
getLevel
public LogLevel getLevel()
Description copied from interface:LogReader
Level of the log records returned by this log reader.
-
getStartDate
public Date getStartDate()
Description copied from interface:LogReader
Start (earliest) date of the log records returned by this log reader.- Specified by:
getStartDate
in interfaceLogReader
- Returns:
- Start date of the log records or 'null' if no start date has been set
-
setEndDate
public void setEndDate(Date date)
Description copied from interface:LogReader
End (latest) date of of the log records returned by this log reader.- Specified by:
setEndDate
in interfaceLogReader
- Parameters:
date
- end date
-
setLevel
public void setLevel(LogLevel level)
Description copied from interface:LogReader
Level of the log records returned by this log reader.
-
setStartDate
public void setStartDate(Date date)
Description copied from interface:LogReader
Start (earliest) date of the log records returned by this log reader.- Specified by:
setStartDate
in interfaceLogReader
-
supportsDateRanges
public boolean supportsDateRanges()
Description copied from interface:LogReader
Test if this LogReader implementation supports date-based records filtering.- Specified by:
supportsDateRanges
in interfaceLogReader
- Returns:
- true if date filtering is supported
-
getMaxDate
public Date getMaxDate()
Description copied from interface:LogReader
Max (latest) available date of the log records.- Specified by:
getMaxDate
in interfaceLogReader
- Returns:
- maximum date
-
getMinDate
public Date getMinDate()
Description copied from interface:LogReader
Min (earliest) available date of the log records.- Specified by:
getMinDate
in interfaceLogReader
- Returns:
- minimum date
-
supportsLevelFilter
public boolean supportsLevelFilter()
Description copied from interface:LogReader
Test if this LogReader implementation supports level-based records filtering.- Specified by:
supportsLevelFilter
in interfaceLogReader
- Returns:
- true if level filtering is supported.
-
getThread
public String getThread()
Description copied from interface:LogReader
Thread name of the log records returned by this log reader.
-
setThread
public void setThread(String threadname)
Description copied from interface:LogReader
Thread name of the log records returned by this log reader.
-
supportsThreadFilter
public boolean supportsThreadFilter()
Description copied from interface:LogReader
Test if this LogReader implementation supports thread-based records filtering.- Specified by:
supportsThreadFilter
in interfaceLogReader
- Returns:
- true if thread filtering is supported.
-
getLimit
public int getLimit()
Get the limit.
-
setLimit
public void setLimit(int limit)
Set the limit
-
getOffset
public int getOffset()
Get the offset
-
setOffset
public void setOffset(int offset)
Set the offset
-
getThreadNames
public List<String> getThreadNames()
Description copied from interface:LogReader
All available thread names of the log records.- Specified by:
getThreadNames
in interfaceLogReader
- Returns:
- a List of thread names of the log records.
-
-