Groovy Documentation

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

java.lang.Object
  org.linkedin.glu.orchestration.engine.commands.AbstractCommandExecutionStorage
      org.linkedin.glu.orchestration.engine.commands.MemoryCommandExecutionStorage

class MemoryCommandExecutionStorage
extends AbstractCommandExecutionStorage

Mostly used for testing purposes...

Authors:
yan@pongasoft.com


Field Summary
static java.lang.String MODULE

static Logger log

 
Fields inherited from class AbstractCommandExecutionStorage
MODULE, log
 
Property Summary
int maxResults

java.util.Map memory

 
Method Summary
protected DbCommandExecution doEndExecution(java.lang.String commandId, long endTime, byte[] stdoutFirstBytes, java.lang.Long stdoutTotalBytesCount, byte[] stderrFirstBytes, java.lang.Long stderrTotalBytesCount, java.lang.String exitValue, java.lang.String exitError)

protected DbCommandExecution doFindByCommandId(java.lang.String commandId)

DbCommandExecution findCommandExecution(java.lang.String fabric, java.lang.String commandId)

java.util.Map findCommandExecutions(java.lang.String fabric, java.lang.String agent, java.lang.Object params)

int getMaxNumberOfElements()

void setMaxNumberOfElements(int maxNumberOfElements)

DbCommandExecution startExecution(java.lang.String fabric, java.lang.String agent, java.lang.String username, java.lang.String command, boolean redirectStderr, byte[] stdinFirstBytes, java.lang.Long stdinTotalBytesCount, java.lang.String commandId, java.lang.Object commandType, long startTime)

 
Methods inherited from class AbstractCommandExecutionStorage
doEndExecution, doFindByCommandId, doUpdate, endExecution, endExecution
 

Field Detail

MODULE

public static final java.lang.String MODULE


log

public static final Logger log


 
Property Detail

maxResults

@Initializable
int maxResults


memory

@Initializable(required=true)
java.util.Map memory


 
Method Detail

doEndExecution

@Override
protected DbCommandExecution doEndExecution(java.lang.String commandId, long endTime, byte[] stdoutFirstBytes, java.lang.Long stdoutTotalBytesCount, byte[] stderrFirstBytes, java.lang.Long stderrTotalBytesCount, java.lang.String exitValue, java.lang.String exitError)


doFindByCommandId

@Override
protected DbCommandExecution doFindByCommandId(java.lang.String commandId)


findCommandExecution

@Override
DbCommandExecution findCommandExecution(java.lang.String fabric, java.lang.String commandId)


findCommandExecutions

@Override
java.util.Map findCommandExecutions(java.lang.String fabric, java.lang.String agent, java.lang.Object params)


getMaxNumberOfElements

int getMaxNumberOfElements()


setMaxNumberOfElements

@Initializer
void setMaxNumberOfElements(int maxNumberOfElements)


startExecution

@Override
DbCommandExecution startExecution(java.lang.String fabric, java.lang.String agent, java.lang.String username, java.lang.String command, boolean redirectStderr, byte[] stdinFirstBytes, java.lang.Long stdinTotalBytesCount, java.lang.String commandId, java.lang.Object commandType, long startTime)


 

Groovy Documentation