Constructor and Description |
---|
LogTail(java.lang.String logFilePath,
long offset,
java.util.List<java.lang.String> data) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getData()
Gets the last block(s) of the errorLog.
|
java.lang.String |
getLogFilePath()
Gets the log file path.
|
long |
getOffset()
Gets the offset required to get the next block when it becomes available.
|
public LogTail(java.lang.String logFilePath, long offset, @Nonnull java.util.List<java.lang.String> data)
public java.lang.String getLogFilePath()
ILogTail
By default, it's set to null, which is not valid.
getLogFilePath
in interface ILogTail
public long getOffset()
ILogTail
By default, it is set to -1, which is not valid (same as not setting the offset).