public class SwitchingTaskLogStreamer extends Object implements TaskLogStreamer
| Constructor and Description | 
|---|
SwitchingTaskLogStreamer(List<TaskLogStreamer> providers)  | 
| Modifier and Type | Method and Description | 
|---|---|
com.google.common.base.Optional<com.google.common.io.ByteSource> | 
streamTaskLog(String taskid,
             long offset)
Stream log for a task. 
 | 
@Inject public SwitchingTaskLogStreamer(List<TaskLogStreamer> providers)
public 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).IOExceptionCopyright © 2011–2018. All rights reserved.