|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.linkedin.glu.orchestration.engine.commands.CommandsServiceImpl
class CommandsServiceImpl
Field Summary | |
---|---|
static java.lang.String |
MODULE
|
static Logger |
log
|
Property Summary | |
---|---|
AgentsService |
agentsService
|
AuthorizationService |
authorizationService
|
Clock |
clock
|
MemorySize |
commandExecutionFirstBytesSize
using 255 by default because that is what a |
CommandExecutionIOStorage |
commandExecutionIOStorage
|
CommandExecutionStorage |
commandExecutionStorage
|
java.lang.Object |
createGluCommand
Factory to create a command (first try to read it from the db or store it first in the db) |
Timespan |
defaultInterruptTimeout
This timeout represents how long to we are willing to wait for the command to wait for the interrupt to propagate before we interrupt it on this side |
Timespan |
defaultSynchronousWaitTimeout
This timeout represents how long to we are willing to wait for the command to complete before returning. |
PluginService |
pluginService
|
Submitter |
submitter
|
Timespan |
timeout
the timeout for waiting for command to complete |
Method Summary | |
---|---|
CommandExecution
|
doExecuteShellCommand(Fabric fabric, java.lang.String agentName, java.lang.Object args, groovy.lang.Closure onResultStreamAvailable)
Executes the command asynchronously |
java.lang.String
|
executeShellCommand(Fabric fabric, java.lang.String agentName, java.lang.Object args)
|
DbCommandExecution
|
findCommandExecution(Fabric fabric, java.lang.String commandId)
|
java.util.Map
|
findCommandExecutions(Fabric fabric, java.lang.String agentName, java.lang.Object params)
|
java.util.Map
|
findCurrentCommandExecutions(java.util.Collection commandIds = null)
|
boolean
|
interruptCommand(Fabric fabric, java.lang.String agentName, java.lang.String commandId)
|
void
|
setCommandExecutionIOStorage(CommandExecutionIOStorage storage)
This is somewhat hacky but cannot do it in spring due to circular reference... |
java.lang.Object
|
withCommandExecutionAndWithOrWithoutStreams(Fabric fabric, 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 |
---|
public static final java.lang.String MODULE
public static final Logger log
Property Detail |
---|
@Initializable(required = true) AgentsService agentsService
@Initializable AuthorizationService authorizationService
@Initializable Clock clock
@Initializable(required = true) MemorySize commandExecutionFirstBytesSize
String
in GORM can hold
@Initializable(required = true) CommandExecutionIOStorage commandExecutionIOStorage
@Initializable(required = true) CommandExecutionStorage commandExecutionStorage
java.lang.Object createGluCommand
@Initializable Timespan defaultInterruptTimeout
@Initializable Timespan defaultSynchronousWaitTimeout
@Initializable(required = true) PluginService pluginService
@Initializable Submitter submitter
@Initializable(required = false) Timespan timeout
Method Detail |
---|
CommandExecution doExecuteShellCommand(Fabric fabric, java.lang.String agentName, java.lang.Object args, groovy.lang.Closure onResultStreamAvailable)
@Override java.lang.String executeShellCommand(Fabric fabric, java.lang.String agentName, java.lang.Object args)
@Override DbCommandExecution findCommandExecution(Fabric fabric, java.lang.String commandId)
@Override java.util.Map findCommandExecutions(Fabric fabric, java.lang.String agentName, java.lang.Object params)
@Override java.util.Map findCurrentCommandExecutions(java.util.Collection commandIds = null)
@Override boolean interruptCommand(Fabric fabric, java.lang.String agentName, java.lang.String commandId)
void setCommandExecutionIOStorage(CommandExecutionIOStorage storage)
@Override java.lang.Object withCommandExecutionAndWithOrWithoutStreams(Fabric fabric, java.lang.String commandId, java.lang.Object args, groovy.lang.Closure closure)
Groovy Documentation