<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2010-2017 Evolveum
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<task xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
    <name>JDBC Ping</name>
    <extension xmlns:ping="http://midpoint.evolveum.com/xml/ns/public/task/jdbc-ping/handler-3">
        <ping:tests>10</ping:tests> <!-- 0 for infinite run -->
        <ping:interval>1</ping:interval> <!-- default is 10 -->
        <ping:testQuery>SELECT * FROM M_CONNECTOR</ping:testQuery> <!-- default is SELECT 1=1 -->
        <ping:driverClassName>org.postgresql.Driver</ping:driverClassName> <!-- default for these four is taken from repository configuration -->
        <ping:jdbcUrl>jdbc:postgresql://localhost/midpoint</ping:jdbcUrl>
        <ping:jdbcUsername>midpoint</ping:jdbcUsername>
        <ping:jdbcPassword>midpoint</ping:jdbcPassword>
        <ping:logOnInfoLevel>true</ping:logOnInfoLevel> <!-- default is true -->
    </extension>
    <ownerRef oid="00000000-0000-0000-0000-000000000002"/>
    <executionState>runnable</executionState>
    <handlerUri>http://midpoint.evolveum.com/xml/ns/public/task/jdbc-ping/handler-3</handlerUri>
</task>
