com.perforce.p4java.impl.generic.admin
Class LogTail

java.lang.Object
  extended by 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 Summary
LogTail(String logFilePath, long offset, List<String> data)
           
 
Method Summary
 List<String> getData()
          Gets the last block(s) of the errorLog.
 String getLogFilePath()
          Gets the log file path.
 long getOffset()
          Gets the offset required to get the next block when it becomes available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogTail

public LogTail(String logFilePath,
               long offset,
               List<String> data)
Method Detail

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
See Also:
ILogTail.getLogFilePath()

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
See Also:
ILogTail.getOffset()

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
See Also:
ILogTail.getData()


Copyright © 2015 Perforce Software. All Rights Reserved.