Package com.logviewer.data2.net
Class BrokenLog
java.lang.Object
com.logviewer.data2.net.BrokenLog
- All Implemented Interfaces:
LogView
- Direct Known Subclasses:
ExceptionBrokenLogView,NotConnectedLogView
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChangeListener(Consumer<FileAttributes> changeListener) createRecordSearcher(Position start, boolean backward, RecordPredicate recordPredicate, String hash, int recordCount, SearchPattern searchPattern, Consumer<SearchResult> listener) final booleanloadContent(long offset, int length) Reads a piece of the log.loadRecords(RecordPredicate filter, int recordCount, Position start, boolean backward, String hash, long sizeLimit, LogDataListener listener) readRecordAt(long offset) tryRead()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logviewer.data2.LogView
getFormat, getHostname, getId, getPath
-
Field Details
-
error
-
-
Constructor Details
-
BrokenLog
-
-
Method Details
-
isConnected
public final boolean isConnected()- Specified by:
isConnectedin interfaceLogView
-
loadRecords
public LogProcess loadRecords(RecordPredicate filter, int recordCount, Position start, boolean backward, String hash, long sizeLimit, @NonNull LogDataListener listener) - Specified by:
loadRecordsin interfaceLogView
-
createRecordSearcher
public LogProcess createRecordSearcher(@NonNull Position start, boolean backward, RecordPredicate recordPredicate, @NonNull String hash, int recordCount, @NonNull SearchPattern searchPattern, @NonNull Consumer<SearchResult> listener) - Specified by:
createRecordSearcherin interfaceLogView
-
tryRead
-
readRecordAt
- Specified by:
readRecordAtin interfaceLogView
-
loadContent
Description copied from interface:LogViewReads a piece of the log.- Specified by:
loadContentin interfaceLogView- Parameters:
offset- The offset in the log.length- The number of bytes to read. The actual read piece may be less than 'length'.- Returns:
- A pair of the read text and the actual size of the text in bytes.
-
addChangeListener
- Specified by:
addChangeListenerin interfaceLogView
-