public abstract class LogCollector extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static char |
END_OF_LOG |
| 构造器和说明 |
|---|
LogCollector() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
collect(String line,
com.alibaba.schedulerx.common.domain.StreamType streamType,
boolean isEnd) |
void |
collect(String key,
String line) |
void |
collect(String key,
String line,
com.alibaba.schedulerx.common.domain.StreamType streamType,
boolean isEnd) |
void |
collect(String key,
String line,
Throwable t) |
abstract void |
collect(String key,
String line,
Throwable t,
com.alibaba.schedulerx.common.domain.StreamType streamType,
boolean isEnd) |
void |
collectStderr(String line) |
void |
collectStderr(String line,
boolean isEnd) |
void |
collectStdout(String line) |
void |
collectStdout(String line,
boolean isEnd) |
void |
delete() |
com.alibaba.schedulerx.common.domain.LogReadResult |
readChars(long offset,
int size,
com.alibaba.schedulerx.common.domain.StreamType streamType) |
List<String> |
readLines(long lineOffset,
int lineNumber,
com.alibaba.schedulerx.common.domain.StreamType streamType) |
List<String> |
tailLines(int lineNumber,
com.alibaba.schedulerx.common.domain.StreamType streamType) |
public void collectStdout(String line)
public void collectStderr(String line)
public void collectStdout(String line, boolean isEnd)
public void collectStderr(String line, boolean isEnd)
public void collect(String line, com.alibaba.schedulerx.common.domain.StreamType streamType, boolean isEnd)
public void collect(String key, String line, com.alibaba.schedulerx.common.domain.StreamType streamType, boolean isEnd)
public abstract void collect(String key, String line, Throwable t, com.alibaba.schedulerx.common.domain.StreamType streamType, boolean isEnd)
public List<String> readLines(long lineOffset, int lineNumber, com.alibaba.schedulerx.common.domain.StreamType streamType) throws IOException
IOExceptionpublic com.alibaba.schedulerx.common.domain.LogReadResult readChars(long offset,
int size,
com.alibaba.schedulerx.common.domain.StreamType streamType)
throws IOException
IOExceptionpublic List<String> tailLines(int lineNumber, com.alibaba.schedulerx.common.domain.StreamType streamType) throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionCopyright © 2021. All rights reserved.