Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D56C3200C22 for ; Tue, 21 Feb 2017 14:13:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D3E94160B68; Tue, 21 Feb 2017 13:13:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2B2C1160B3E for ; Tue, 21 Feb 2017 14:13:56 +0100 (CET) Received: (qmail 58242 invoked by uid 500); 21 Feb 2017 13:13:50 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 58175 invoked by uid 99); 21 Feb 2017 13:13:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2017 13:13:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3C2721A95B9 for ; Tue, 21 Feb 2017 13:13:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6JSX9wRNTd_5 for ; Tue, 21 Feb 2017 13:13:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1BF3660DC0 for ; Tue, 21 Feb 2017 13:13:47 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 01DD0E0657 for ; Tue, 21 Feb 2017 13:13:46 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6089124136 for ; Tue, 21 Feb 2017 13:13:44 +0000 (UTC) Date: Tue, 21 Feb 2017 13:13:44 +0000 (UTC) From: "Luca Burgazzoli (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CAMEL-10795) PingCheck API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Feb 2017 13:13:57 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luca Burgazzoli reassigned CAMEL-10795: --------------------------------------- Assignee: Luca Burgazzoli > PingCheck API > ------------- > > Key: CAMEL-10795 > URL: https://issues.apache.org/jira/browse/CAMEL-10795 > Project: Camel > Issue Type: New Feature > Components: camel-core > Reporter: Claus Ibsen > Assignee: Luca Burgazzoli > Fix For: 2.19.0 > > > Related to CAMEL-10026 about Health Check API > We need some way for Camel components to be able to more easily validate if they can connect to their remote system. > And for that the user must configure the Camel component/endpoint accordingly with details such as username/password/tokens/ other beans etc. > How this is done varies from Camel component to component, but most of them uses endpoint options. > So we may want to introduce some interface (whether the name Pingable is a good name is up for discussion) > {code} > interface Pingable { > PingResult ping(Map config); > boolean canPing(Map config); > } > class PingResult { > private boolean isSuccess(); > private String errorMessage(); > } > {code} > This API is just a little suggestion. > The parameters should ideally be type less, eg Map as the user configures this in endpoint uris, XML DSL etc. and therefore we should be able to do this without having to use Java code per see. > Also we may want to have canPing as a method to check if the component can accept the ping or not. In some cases it may not be able to do the ping. > For example camel-http component would just require the following information in the Map > httpUri=http://myserver/foo/bar > Where httpUri is the name of the option accordingly to the table at > https://github.com/apache/camel/blob/master/components/camel-http/src/main/docs/http-component.adoc > And then it depends on each Camel component how they do the ping check, the http component may do a HTTP HEAD or a HTTP GET etc and check the HTTP response code etc. > Notice this is not intended entirely for runtime health check, but for validating/testing Camel components can work with the user given configuration to connect to the remote system. -- This message was sent by Atlassian JIRA (v6.3.15#6346)