static class ExternalProgramExecutor.RequestWrapper extends Object implements Request
Modifier and Type | Field and Description |
---|---|
private String |
command |
private Map<String,Object> |
parameters |
private Request |
parent |
COMMAND_CONFIGURE_JOB, COMMAND_CONFIGURE_PLUGIN, COMMAND_EXECUTE
Constructor and Description |
---|
ExternalProgramExecutor.RequestWrapper(String command,
Request parent) |
Modifier and Type | Method and Description |
---|---|
String |
getCommand()
The command the plugin should execute.
|
Object |
getParameterValue(String name)
Get the value for the parameter with the specified name.
|
List<?> |
getParameterValues(String name)
Get the values for the parameter with the specified name.
|
boolean |
isAllowedImmediateExecution()
If this plugin has been allowed immediate execution or not.
|
(package private) void |
setParameter(String key,
Object value) |
public String getCommand()
Request
getCommand
in interface Request
public Object getParameterValue(String name) throws ParameterException
Request
getParameterValue
in interface Request
name
- The name of the parameterParameterException
- If getting the value fails.public List<?> getParameterValues(String name)
Request
getParameterValues
in interface Request
name
- The name of the parameterpublic boolean isAllowedImmediateExecution()
Request
Response.setExecuteImmediately(String, Job.ExecutionTime, boolean)
or, if the plugin is a ImmediateDownloadExporter
,
Response.setDownloadImmediately(String, Job.ExecutionTime, boolean)
.isAllowedImmediateExecution
in interface Request