Skip to content

Commit

Permalink
add ability to specify a class for a stale connection
Browse files Browse the repository at this point in the history
  • Loading branch information
hhellbusch committed Nov 6, 2019
1 parent 4d14f38 commit 9bdb4fe
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,14 @@ function generate_external_datasource_xml() {
<background-validation-millis>${millis}</background-validation-millis>"
fi


# allows for specificaiton of a stale-connection-checker
stale_checker=$(find_env "${prefix}_STALE_CONNECTION_CHECKER")
if [ -n $stale_checker ]; then
validation_conf="$validation_conf
<stale-connection-checker class-name=\"${stale_checker}\"/>"
fi

ds="$ds
<validation>
${validation_conf}
Expand Down Expand Up @@ -1062,4 +1070,4 @@ function inject_job_repository() {
echo "${cli}" >> "${DEFAULT_JOB_REPOSITORY_FILE}"
fi

}
}

0 comments on commit 9bdb4fe

Please sign in to comment.