Groovy Documentation

org.linkedin.glu.orchestration.engine.commands
[Groovy] Class DbCommandExecution

java.lang.Object
  org.linkedin.glu.orchestration.engine.commands.DbCommandExecution

@Entity
class DbCommandExecution

Authors:
yan@pongasoft.com


Nested Class Summary
enum DbCommandExecution.CommandType

 
Field Summary
static java.lang.String MODULE

static Logger log

 
Property Summary
java.lang.String agent

The agent on which the command was run

java.lang.String command

The command run

java.lang.String commandId

Id of the command (as returned by the agent)

CommandType commandType

The type of the command

java.lang.Long completionTime

time the command ended

static java.lang.Object constraints

java.lang.String exitError

The exit error (if any)

java.lang.String exitValue

The return value of the command

java.lang.String fabric

The fabric on which the command was run

boolean isExecuting

static java.lang.Object mapping

boolean redirectStderr

Whether stderr is redirected to stdout (through the flag... not the command)

long startTime

time the command was started

byte[] stderrFirstBytes

The result (stderr) (first bytes...)

java.lang.Long stderrTotalBytesCount

The total number of bytes in stderr

byte[] stdinFirstBytes

input provided to the command (first bytes...)

java.lang.Long stdinTotalBytesCount

The total number of bytes in stdin

byte[] stdoutFirstBytes

the result (stdout) (first bytes...)

java.lang.Long stdoutTotalBytesCount

The total number of bytes in stdout

static java.lang.Object transients

java.lang.String username

The user who is running the command

 
Method Summary
DbCommandExecution copy()

Timespan getDuration()

@return the duration

byte[] getFirstBytes(java.lang.Object streamType)

java.lang.Long getTotalBytesCount(java.lang.Object streamType)

boolean hasMoreBytes(java.lang.Object streamType)

boolean isAborted()

Means it never completed for some reason (currently not running and exit value was never set!)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

MODULE

public static final java.lang.String MODULE


log

public static final Logger log


 
Property Detail

agent

java.lang.String agent
The agent on which the command was run


command

java.lang.String command
The command run


commandId

java.lang.String commandId
Id of the command (as returned by the agent)


commandType

CommandType commandType
The type of the command


completionTime

java.lang.Long completionTime
time the command ended


constraints

static java.lang.Object constraints


exitError

java.lang.String exitError
The exit error (if any)


exitValue

java.lang.String exitValue
The return value of the command


fabric

java.lang.String fabric
The fabric on which the command was run


isExecuting

boolean isExecuting


mapping

static java.lang.Object mapping


redirectStderr

boolean redirectStderr
Whether stderr is redirected to stdout (through the flag... not the command)


startTime

long startTime
time the command was started


stderrFirstBytes

byte[] stderrFirstBytes
The result (stderr) (first bytes...)


stderrTotalBytesCount

java.lang.Long stderrTotalBytesCount
The total number of bytes in stderr


stdinFirstBytes

byte[] stdinFirstBytes
input provided to the command (first bytes...)


stdinTotalBytesCount

java.lang.Long stdinTotalBytesCount
The total number of bytes in stdin


stdoutFirstBytes

byte[] stdoutFirstBytes
the result (stdout) (first bytes...)


stdoutTotalBytesCount

java.lang.Long stdoutTotalBytesCount
The total number of bytes in stdout


transients

static java.lang.Object transients


username

java.lang.String username
The user who is running the command


 
Method Detail

copy

DbCommandExecution copy()


getDuration

Timespan getDuration()
Returns:
the duration


getFirstBytes

byte[] getFirstBytes(java.lang.Object streamType)


getTotalBytesCount

java.lang.Long getTotalBytesCount(java.lang.Object streamType)


hasMoreBytes

boolean hasMoreBytes(java.lang.Object streamType)


isAborted

boolean isAborted()
Means it never completed for some reason (currently not running and exit value was never set!)


 

Groovy Documentation