+# Run scripts to support JVM monitoring.
+function add_jvm_support()
+{
+ # TODO unite short and long version to one script and parametrize the input: short/long/any number
+ if [ "${ELASTICSEARCHATTRIBUTE}" == "short" ]; then
+ run_script="${WORKSPACE}/test/csit/scripts/set_elasticsearch_attribute_short.sh"
+ else
+ run_script="${WORKSPACE}/test/csit/scripts/set_elasticsearch_attribute_long.sh"
+ fi
+ printf "Executing %s...\\n" "${run_script}"
+ # shellcheck source=${line} disable=SC1091
+ source "${run_script}"
+
+ run_script="${WORKSPACE}/test/csit/scripts/set_jvm_common_attribute.sh"
+ printf "Executing %s...\\n" "${run_script}"
+ # shellcheck source=${line} disable=SC1091
+ source "${run_script}"
+} # function add_jvm_support()
+