com.dtolabs.rundeck.core.cli.queue
Class ConsoleExecutionFollowReceiver

java.lang.Object
  extended by com.dtolabs.rundeck.core.cli.queue.ConsoleExecutionFollowReceiver
All Implemented Interfaces:
ExecutionFollowReceiver

public class ConsoleExecutionFollowReceiver
extends java.lang.Object
implements ExecutionFollowReceiver

ConsoleExecutionFollowReceiver is ...


Nested Class Summary
static class ConsoleExecutionFollowReceiver.Mode
          Execution follow mode
 
Field Summary
static long DEFAULT_INDETERMINATE_DELAY
           
 
Constructor Summary
ConsoleExecutionFollowReceiver(long averageDuration, ConsoleExecutionFollowReceiver.Mode mode, java.io.PrintStream out, BaseLogger logger)
           
 
Method Summary
 boolean receiveFollowStatus(long offset, long totalSize, long duration)
          Receive updated log output status, and return true to continue receiving output.
 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, and return true to continue receiving output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INDETERMINATE_DELAY

public static final long DEFAULT_INDETERMINATE_DELAY
See Also:
Constant Field Values
Constructor Detail

ConsoleExecutionFollowReceiver

public ConsoleExecutionFollowReceiver(long averageDuration,
                                      ConsoleExecutionFollowReceiver.Mode mode,
                                      java.io.PrintStream out,
                                      BaseLogger logger)
Method Detail

receiveFollowStatus

public boolean receiveFollowStatus(long offset,
                                   long totalSize,
                                   long duration)
Description copied from interface: ExecutionFollowReceiver
Receive updated log output status, and return true to continue receiving output.

Specified by:
receiveFollowStatus in interface ExecutionFollowReceiver
Parameters:
offset - offset location
totalSize - total log file size
duration - millisecond duration of the execution

receiveLogEntry

public 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)
Description copied from interface: ExecutionFollowReceiver
Receive a log entry, and return true to continue receiving output.

Specified by:
receiveLogEntry in interface ExecutionFollowReceiver
Parameters:
timeStr - time string
loglevel - log level string
user - username
command - command context
nodeName - node name
message - log message