public class NoopTaskLogs extends Object implements TaskLogs
| Constructor and Description |
|---|
NoopTaskLogs() |
| Modifier and Type | Method and Description |
|---|---|
void |
killAll() |
void |
killOlderThan(long timestamp) |
void |
pushTaskLog(String taskid,
File logFile) |
void |
pushTaskReports(String taskid,
File reportFile) |
com.google.common.base.Optional<com.google.common.io.ByteSource> |
streamTaskLog(String taskid,
long offset)
Stream log for a task.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstreamTaskReportspublic com.google.common.base.Optional<com.google.common.io.ByteSource> streamTaskLog(String taskid, long offset)
TaskLogStreamerstreamTaskLog in interface TaskLogStreameroffset - If zero, stream the entire log. If positive, attempt to read from this position onwards. If
negative, attempt to read this many bytes from the end of the file (like tail -n).public void pushTaskLog(String taskid, File logFile)
pushTaskLog in interface TaskLogPusherpublic void pushTaskReports(String taskid, File reportFile) throws IOException
pushTaskReports in interface TaskLogPusherIOExceptionpublic void killAll()
killAll in interface TaskLogKillerpublic void killOlderThan(long timestamp)
killOlderThan in interface TaskLogKillerCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.