public class GoogleTaskLogs extends Object implements TaskLogs
| Constructor and Description | 
|---|
GoogleTaskLogs(GoogleTaskLogsConfig config,
              GoogleStorage storage)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
killAll()  | 
void | 
killOlderThan(long timestamp)  | 
void | 
pushTaskLog(String taskid,
           File logFile)  | 
com.google.common.base.Optional<com.google.common.io.ByteSource> | 
streamTaskLog(String taskid,
             long offset)
Stream log for a task. 
 | 
@Inject public GoogleTaskLogs(GoogleTaskLogsConfig config, GoogleStorage storage)
public void pushTaskLog(String taskid, File logFile) throws IOException
pushTaskLog in interface TaskLogPusherIOExceptionpublic com.google.common.base.Optional<com.google.common.io.ByteSource> streamTaskLog(String taskid, long offset) throws IOException
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).IOExceptionpublic void killAll()
             throws IOException
killAll in interface TaskLogKillerIOExceptionpublic void killOlderThan(long timestamp)
                   throws IOException
killOlderThan in interface TaskLogKillerIOExceptionCopyright © 2011–2017. All rights reserved.