public final class ScriptRunner extends Object
This task implements script execution on a cluster. The script is usually given as a plain string (script source), but may also be provided as an accessible URL.
| Modifier and Type | Field and Description |
|---|---|
static String[] |
RESERVED_VARIABLES |
| Constructor and Description |
|---|
ScriptRunner(String scriptLanguage) |
ScriptRunner(String scriptSource,
String scriptLanguage) |
ScriptRunner(URL scriptUrl,
String scriptLanguage) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(String key,
Object val) |
void |
execute() |
Map<String,Object> |
getResults() |
void |
init(OutputStream out,
OutputStream err) |
static boolean |
isReservedVariable(String variable) |
void |
setAuditEventView(EventView<AuditEvent> view) |
void |
setErrorWriter(Writer out) |
void |
setLogMessageView(EventView<LogMessage> view) |
void |
setOutputWriter(Writer out) |
void |
setResults(Map<String,Object> results) |
public static final String[] RESERVED_VARIABLES
public ScriptRunner(URL scriptUrl, String scriptLanguage) throws Exception
scriptUrl - scriptLanguage - Exceptionpublic void init(OutputStream out, OutputStream err) throws Exception
Exceptionorg.jwall.data.node.RemoteTask#init(org.slf4j.log, java.io.OutputStream)public void setErrorWriter(Writer out)
public void setOutputWriter(Writer out)
public void setAuditEventView(EventView<AuditEvent> view)
public void setLogMessageView(EventView<LogMessage> view)
public void execute()
throws Exception
Exceptionorg.jwall.data.node.RemoteTask#execute(org.jwall.audit.EventView)public static final boolean isReservedVariable(String variable)
Copyright © 2013 jwall.org. All Rights Reserved.