|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface CommandsService
Method Summary | |
---|---|
java.lang.String
|
executeShellCommand(Fabric fabric, java.lang.String agentName, java.lang.Object args)
Executes the shell command. |
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()
@return a map with all currently running commands |
java.util.Map
|
findCurrentCommandExecutions(java.util.Collection commandIds)
@return a map with all currently running commands (filtered by the commandIds) |
boolean
|
interruptCommand(Fabric fabric, java.lang.String agentName, java.lang.String commandId)
Interrupts the command. |
java.lang.Object
|
withCommandExecutionAndWithOrWithoutStreams(Fabric fabric, java.lang.String commandId, java.lang.Object args, groovy.lang.Closure closure)
@param closure will be called back with a map with |
Method Detail |
---|
java.lang.String executeShellCommand(Fabric fabric, java.lang.String agentName, java.lang.Object args)
args
- see org.linkedin.glu.agent.api.Agent#executeShellCommand for details on 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.Map findCurrentCommandExecutions(java.util.Collection commandIds)
boolean interruptCommand(Fabric fabric, java.lang.String agentName, java.lang.String commandId)
args.id
- the id of the command to interrupttrue
if the command was interrupted properly or false
if
there was no such command or already completed
java.lang.Object withCommandExecutionAndWithOrWithoutStreams(Fabric fabric, java.lang.String commandId, java.lang.Object args, groovy.lang.Closure closure)
closure
- will be called back with a map with commandExecution
and stream
(if any)
Groovy Documentation