java.lang.Object
com.perforce.p4java.impl.generic.admin.LogTail
All Implemented Interfaces:
ILogTail

public class LogTail extends Object implements ILogTail
Default implementation of the ILogTail interface.
  • Constructor Details

    • LogTail

      public LogTail(String logFilePath, long offset, @Nonnull List<String> data)
  • Method Details

    • getLogFilePath

      public String getLogFilePath()
      Description copied from interface: ILogTail
      Gets the log file path.

      By default, it's set to null, which is not valid.

      Specified by:
      getLogFilePath in interface ILogTail
      Returns:
      the log file path
    • getOffset

      public long getOffset()
      Description copied from interface: ILogTail
      Gets the offset required to get the next block when it becomes available.

      By default, it is set to -1, which is not valid (same as not setting the offset).

      Specified by:
      getOffset in interface ILogTail
      Returns:
      the offset bytes
    • getData

      public List<String> getData()
      Description copied from interface: ILogTail
      Gets the last block(s) of the errorLog.

      By default, it is set to null, which is not valid.

      Specified by:
      getData in interface ILogTail
      Returns:
      the log data