Script Interceptor: Configuration: Pre-Processor
Configuration Options Related Tasks Related Topics
A script interceptor can intercept dynamic cluster scale up or scale down operations. The pre-processor script is the script that will be executed before a scale up or scale down operation is executed.
The pre-processor script will be executed before the execution of the intercepted operation. If the script fails (returns non-zero status), the script interceptor will cause an exception. If an error handler script is configured, it will be invoked before causing the exception.
Configuration Options
Name Description Script Path Returns the path to the script to be executed. If null or empty, the script will not be executed. The value should be the path to the script program. If the command is not set, the script is effectively disabled. When specified as a relative path, it will be relative to
DomainDir/bin/scripts
directory. When specified as an absolute path, the script must be underDomainDir/bin/scripts
directory.MBean Attribute:
PreProcessorScriptMBean.PathToScript
Working Directory The working directory which will be used to run the script. If not set or empty, the working directory of the server will be used.
MBean Attribute:
PreProcessorScriptMBean.WorkingDirector
Changes take effect after you redeploy the module or restart the server.
Timeout (in seconds) Returns the timeout interval for script execution in seconds. A zero or negative timeout will imply no timeout.
MBean Attribute:
PreProcessorScriptMBean.TimeoutInSeconds
Script Environment The list of properties that are used to pass data to the script. These properties are in addition to the default list of properties passed to the script by the framework. For example:
ENV_KEY_1=value
. List each property=value pair on a separate line.MBean Attribute:
PreProcessorScriptMBean.Environment
Script Arguments The list of arguments that are passed to the script. List each argument on a separate line.
MBean Attribute:
PreProcessorScriptMBean.Arguments
Error Handler Script Returns the path to the error handler script to be executed. If null or empty, the script will not be executed. The value should be the path to the script program. If the command is not set, the error handler is effectively disabled. Note that the error handler script is executed using the same arguments and and environment as the command script. When specified as a relative path, it will be relative to
DomainDir/bin/scripts
directory. When specified as an absolute path, the script must be underDomainDir/bin/scripts
directory.MBean Attribute:
PreProcessorScriptMBean.PathToErrorHandlerScript
Number of Retries The number of times the script should be re-executed in case of failures before declaring failure.
MBean Attribute:
PreProcessorScriptMBean.NumberOfRetriesAllowed
Minimum value:
0
Retry Delay (in milliseconds) The number of milliseconds to wait before attempting to re-execute a failed script
MBean Attribute:
PreProcessorScriptMBean.RetryDelayInMillis
Minimum value:
0
Ignore Failures Select this checkbox if failures while executing the main script should be ignored.
MBean Attribute:
PreProcessorScriptMBean.IgnoreFailures