Brooklyn

brooklyn.entity.basic.lifecycle
[Java] Interface NaiveScriptRunner

brooklyn.entity.basic.lifecycle.NaiveScriptRunner
  brooklyn.entity.basic.lifecycle.ScriptRunner
All Superinterfaces:
ScriptRunner

@SuppressWarnings("deprecation")
public interface NaiveScriptRunner
extends ScriptRunner

Marks something which can run scripts. Called "Naive" because it hides too much of the complexity, about script execution and other ssh-related tasks (put, etc). The SshTasks approach seems better.

Not gone so far as deprecating (yet, in 0.6.0) although we might. Feedback welcome.

Since:
0.6.0


Method Summary
int execute(java.util.List script, java.lang.String summaryForLogging)

Runs a script and returns the result code

int execute(java.util.Map flags, java.util.List script, java.lang.String summaryForLogging)

Runs a script and returns the result code, supporting flags including: out, err as output/error streams; logPrefix, prefix string to put in log output; env, map of environment vars to pass to shell environment

 
Methods inherited from interface ScriptRunner
execute, execute
 

Method Detail

execute

public int execute(java.util.List script, java.lang.String summaryForLogging)
Runs a script and returns the result code


execute

public int execute(java.util.Map flags, java.util.List script, java.lang.String summaryForLogging)
Runs a script and returns the result code, supporting flags including: out, err as output/error streams; logPrefix, prefix string to put in log output; env, map of environment vars to pass to shell environment


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.