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 05688200BD1 for ; Mon, 28 Nov 2016 09:54:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 043FE160B0D; Mon, 28 Nov 2016 08:54:02 +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 4DF8B160B06 for ; Mon, 28 Nov 2016 09:54:01 +0100 (CET) Received: (qmail 1740 invoked by uid 500); 28 Nov 2016 08:54:00 -0000 Mailing-List: contact issues-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 issues@eagle.incubator.apache.org Received: (qmail 1729 invoked by uid 99); 28 Nov 2016 08:54:00 -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; Mon, 28 Nov 2016 08:54:00 +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 1C9281A0336 for ; Mon, 28 Nov 2016 08:54:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.018 X-Spam-Level: X-Spam-Status: No, score=-7.018 tagged_above=-999 required=6.31 tests=[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, URIBL_BLOCKED=0.001] 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 FI-9GXXUcJqN for ; Mon, 28 Nov 2016 08:53:59 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 0B5F15F246 for ; Mon, 28 Nov 2016 08:53:58 +0000 (UTC) Received: (qmail 1254 invoked by uid 99); 28 Nov 2016 08:53:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2016 08:53:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 757E32C03E2 for ; Mon, 28 Nov 2016 08:53:58 +0000 (UTC) Date: Mon, 28 Nov 2016 08:53:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@eagle.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (EAGLE-804) make interface StreamContext more abstract MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 28 Nov 2016 08:54:02 -0000 [ https://issues.apache.org/jira/browse/EAGLE-804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15701342#comment-15701342 ] ASF GitHub Bot commented on EAGLE-804: -------------------------------------- Github user wujinhu commented on a diff in the pull request: https://github.com/apache/incubator-eagle/pull/690#discussion_r89737726 --- Diff: eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/evaluator/impl/SiddhiPolicyHandler.java --- @@ -88,18 +88,18 @@ public void prepare(final Collector collector, PolicyHandlerCo } public void send(StreamEvent event) throws Exception { - context.getPolicyCounter().scope(String.format("%s.%s", this.context.getPolicyDefinition().getName(), "receive_count")).incr(); + context.getPolicyCounter().incr(String.format("%s.%s", this.context.getPolicyDefinition().getName(), "receive_count")); --- End diff -- I'm not quite sure about the performance of the incr() since there are a lot of method call send(StreamEvent event). Do you evaluate it? > make interface StreamContext more abstract > ------------------------------------------ > > Key: EAGLE-804 > URL: https://issues.apache.org/jira/browse/EAGLE-804 > Project: Eagle > Issue Type: Improvement > Reporter: JiJun Tang > Assignee: JiJun Tang > Priority: Minor > > For now, interface StreamContext is binded to Storm's count implement MultiCountMetric.We should make it more abstract. -- This message was sent by Atlassian JIRA (v6.3.4#6332)