Groovy Documentation

org.linkedin.glu.commands.impl
[Groovy] Class AbstractCommandExecutionIOStorage

java.lang.Object
  org.linkedin.glu.commands.impl.AbstractCommandExecutionIOStorage

abstract class AbstractCommandExecutionIOStorage

Authors:
yan@pongasoft.com


Field Summary
static java.lang.String MODULE

static Logger log

 
Property Summary
Clock clock

GluCommandFactory gluCommandFactory

PluginService pluginService

Submitter submitter

 
Method Summary
protected java.lang.Object captureIO(CommandExecution commandExecution, groovy.lang.Closure closure)

Will be called back to capture the IO

CommandExecution createStorageForCommandExecution(java.lang.Object args)

java.lang.Object findCommandExecutionAndStreams(java.lang.String commandId, java.lang.Object args)

{@inheritdoc}

protected AbstractCommandStreamStorage saveCommandExecution(CommandExecution commandExecution, java.lang.Object stdin)

Should save the command in persistent state (as well as stdin if there is any)

java.lang.Object withOrWithoutCommandExecutionAndStreams(java.lang.String commandId, java.lang.Object args, groovy.lang.Closure closure)

 
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

clock

@Initializable(required = false)
Clock clock


gluCommandFactory

@Initializable(required = true)
GluCommandFactory gluCommandFactory


pluginService

@Initializable
PluginService pluginService


submitter

@Initializable
Submitter submitter


 
Method Detail

captureIO

protected java.lang.Object captureIO(CommandExecution commandExecution, groovy.lang.Closure closure)
Will be called back to capture the IO
Returns:
a map with exitValue of the command execution and completionTime


createStorageForCommandExecution

@Override
CommandExecution createStorageForCommandExecution(java.lang.Object args)


findCommandExecutionAndStreams

@Override
java.lang.Object findCommandExecutionAndStreams(java.lang.String commandId, java.lang.Object args)
{@inheritdoc}


saveCommandExecution

protected AbstractCommandStreamStorage saveCommandExecution(CommandExecution commandExecution, java.lang.Object stdin)
Should save the command in persistent state (as well as stdin if there is any)
Returns:
the storage


withOrWithoutCommandExecutionAndStreams

@Override
java.lang.Object withOrWithoutCommandExecutionAndStreams(java.lang.String commandId, java.lang.Object args, groovy.lang.Closure closure)


 

Groovy Documentation