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 76078200BA9 for ; Sun, 23 Oct 2016 15:05:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6A4C8160AFC; Sun, 23 Oct 2016 13:05:04 +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 B15F2160AD8 for ; Sun, 23 Oct 2016 15:05:03 +0200 (CEST) Received: (qmail 9125 invoked by uid 500); 23 Oct 2016 13:04:56 -0000 Mailing-List: contact commits-help@eagle.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@eagle.incubator.apache.org Delivered-To: mailing list commits@eagle.incubator.apache.org Received: (qmail 9099 invoked by uid 99); 23 Oct 2016 13:04:51 -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; Sun, 23 Oct 2016 13:04:51 +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 D28991A0620 for ; Sun, 23 Oct 2016 13:04:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Rr0qqiAE4m1y for ; Sun, 23 Oct 2016 13:04:49 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id C4A9E5F1ED for ; Sun, 23 Oct 2016 13:04:48 +0000 (UTC) Received: (qmail 9066 invoked by uid 99); 23 Oct 2016 13:04:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2016 13:04:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5D3A8E04BE; Sun, 23 Oct 2016 13:04:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hao@apache.org To: commits@eagle.incubator.apache.org Message-Id: <2c57e37c64b444958cfcf4f886348277@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-eagle git commit: [MINOR] Register StormMetricTaggedConsumer only when metric.sink exists Date: Sun, 23 Oct 2016 13:04:46 +0000 (UTC) archived-at: Sun, 23 Oct 2016 13:05:04 -0000 Repository: incubator-eagle Updated Branches: refs/heads/master 435451eff -> 8bd30aec1 [MINOR] Register StormMetricTaggedConsumer only when metric.sink exists Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/8bd30aec Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/8bd30aec Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/8bd30aec Branch: refs/heads/master Commit: 8bd30aec1e75f964a0e45af605f37e1b672ba312 Parents: 435451e Author: Hao Chen Authored: Sun Oct 23 21:04:33 2016 +0800 Committer: Hao Chen Committed: Sun Oct 23 21:04:33 2016 +0800 ---------------------------------------------------------------------- .../apache/eagle/app/environment/impl/StormExecutionRuntime.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/8bd30aec/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/environment/impl/StormExecutionRuntime.java ---------------------------------------------------------------------- diff --git a/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/environment/impl/StormExecutionRuntime.java b/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/environment/impl/StormExecutionRuntime.java index ccfcd93..4a9b2b7 100644 --- a/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/environment/impl/StormExecutionRuntime.java +++ b/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/environment/impl/StormExecutionRuntime.java @@ -23,6 +23,7 @@ import backtype.storm.utils.NimbusClient; import com.google.common.base.Preconditions; import com.typesafe.config.ConfigRenderOptions; import org.apache.eagle.alert.engine.runner.StormMetricTaggedConsumer; +import org.apache.eagle.alert.metric.MetricConfigs; import org.apache.eagle.app.Application; import org.apache.eagle.app.environment.ExecutionRuntime; import org.apache.eagle.app.environment.ExecutionRuntimeProvider; @@ -61,7 +62,6 @@ public class StormExecutionRuntime implements ExecutionRuntime