public class ConsoleExecutionFollowReceiver extends java.lang.Object implements ExecutionFollowReceiver
Modifier and Type | Class and Description |
---|---|
static class |
ConsoleExecutionFollowReceiver.Mode
Execution follow mode
|
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_INDETERMINATE_DELAY |
Constructor and Description |
---|
ConsoleExecutionFollowReceiver(long averageDuration,
ConsoleExecutionFollowReceiver.Mode mode,
java.io.PrintStream out,
BaseLogger logger) |
Modifier and Type | Method and Description |
---|---|
boolean |
receiveFollowStatus(long offset,
long totalSize,
long duration)
Receive updated log output status
|
boolean |
receiveLogEntry(java.lang.String timeStr,
java.lang.String loglevel,
java.lang.String user,
java.lang.String command,
java.lang.String nodeName,
java.lang.String message)
Receive a log entry
|
public static final long DEFAULT_INDETERMINATE_DELAY
public ConsoleExecutionFollowReceiver(long averageDuration, ConsoleExecutionFollowReceiver.Mode mode, java.io.PrintStream out, BaseLogger logger)
public boolean receiveFollowStatus(long offset, long totalSize, long duration)
ExecutionFollowReceiver
receiveFollowStatus
in interface ExecutionFollowReceiver
offset
- offset locationtotalSize
- total log file sizeduration
- millisecond duration of the executionpublic boolean receiveLogEntry(java.lang.String timeStr, java.lang.String loglevel, java.lang.String user, java.lang.String command, java.lang.String nodeName, java.lang.String message)
ExecutionFollowReceiver
receiveLogEntry
in interface ExecutionFollowReceiver
timeStr
- time stringloglevel
- log level stringuser
- usernamecommand
- command contextnodeName
- node namemessage
- log message