Administration Console Online Help

Previous Next Open TOC in new window
Content starts here

Script Interceptor: Configuration: Post-Processor

Configuration Options     Related Tasks     Related Topics

A script interceptor can intercept dynamic cluster scale up or scale down operations. The post-processor script is the script that will be executed after a scale up or scale down operation is executed.

The post-processor script will be executed after a successful execution of the intercepted operation. If the script fails (returns non-zero status), the script interceptor will execute the error handler script (if configured) and cause an 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 under DomainDir/bin/scripts directory.

MBean Attribute:
PostProcessorScriptMBean.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:
PostProcessorScriptMBean.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:
PostProcessorScriptMBean.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:
PostProcessorScriptMBean.Environment

Script Arguments

The list of arguments that are passed to the script. List each argument on a separate line.

MBean Attribute:
PostProcessorScriptMBean.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 under DomainDir/bin/scripts directory.

MBean Attribute:
PostProcessorScriptMBean.PathToErrorHandlerScript

Number of Retries

The number of times the script should be re-executed in case of failures before declaring failure.

MBean Attribute:
PostProcessorScriptMBean.NumberOfRetriesAllowed

Minimum value: 0

Retry Delay (in milliseconds)

The number of milliseconds to wait before re-executing a failed script

MBean Attribute:
PostProcessorScriptMBean.RetryDelayInMillis

Minimum value: 0

Ignore Failures

Select this checkbox if failures while executing the main script should be ignored.

MBean Attribute:
PostProcessorScriptMBean.IgnoreFailures

Related Tasks

Related Topics


Back to Top