org.jwall.audit.script
Class ScriptRunner
java.lang.Object
org.jwall.audit.script.ScriptRunner
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.
- Author:
- Christian Bockermann <chris@jwall.org>
RESERVED_VARIABLES
public static final String[] RESERVED_VARIABLES
ScriptRunner
public ScriptRunner(String scriptLanguage)
throws Exception
- Throws:
Exception
ScriptRunner
public ScriptRunner(URL scriptUrl,
String scriptLanguage)
throws Exception
- Parameters:
scriptUrl - scriptLanguage -
- Throws:
Exception
ScriptRunner
public ScriptRunner(String scriptSource,
String scriptLanguage)
throws Exception
- Parameters:
scriptSource - scriptLanguage -
- Throws:
Exception
init
public void init(OutputStream out,
OutputStream err)
throws Exception
- Throws:
Exception- See Also:
org.jwall.data.node.RemoteTask#init(org.slf4j.log, java.io.OutputStream)
setErrorWriter
public void setErrorWriter(Writer out)
setOutputWriter
public void setOutputWriter(Writer out)
bind
public void bind(String key,
Object val)
throws Exception
- Throws:
Exception
setAuditEventView
public void setAuditEventView(EventView<AuditEvent> view)
setLogMessageView
public void setLogMessageView(EventView<LogMessage> view)
setResults
public void setResults(Map<String,Object> results)
execute
public void execute()
throws Exception
- Throws:
Exception- See Also:
org.jwall.data.node.RemoteTask#execute(org.jwall.audit.EventView)
getResults
public Map<String,Object> getResults()
isReservedVariable
public static final boolean isReservedVariable(String variable)
Copyright © 2012 jwall.org. All Rights Reserved.