Interface RgScriptConfig
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
MainScriptConfig
,NodeScriptConfig
,WorkerScriptConfig
- All Known Implementing Classes:
MainShellScript
,NodeShellScript
,RgShellScript
,WorkerShellScript
public interface RgScriptConfig extends Serializable
Base for representing RG exec scripts, i.e. scripts delivered by RG installation, not scripts provided by this plugin or user. Currently these are especially shell scriptsmain.sh
andworker.sh
.- Author:
- vjuranek
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]
getInterpreter()
Provides path to interpreter of this script, e.g.String[]
getScriptCmd()
Construct command for executing the script, including script configuration optionsString
getScriptName()
Name of the script, without full path.String
getScriptPath()
RgScriptConfig
withScriptPath(String scriptPath)
-
-
-
Method Detail
-
getInterpreter
String[] getInterpreter()
Provides path to interpreter of this script, e.g./bin/bash
, eventually with parameters like/bin/bash -x
. As it can contain also interpreter parameters, it's represented by the array. The first item of the array is always path to interpreter binary.- Returns:
- Full path to the script interpreter
-
getScriptName
String getScriptName()
Name of the script, without full path.- Returns:
- Script file name
-
getScriptCmd
String[] getScriptCmd()
Construct command for executing the script, including script configuration options- Returns:
- Script path and its configuration options as an array of strings, each item for one option/parameter
-
getScriptPath
String getScriptPath()
-
withScriptPath
RgScriptConfig withScriptPath(String scriptPath)
- Parameters:
scriptPath
- Full path to the script, does include script name itself
-
-