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 50645200B95 for ; Tue, 27 Sep 2016 22:51:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4EF25160AE5; Tue, 27 Sep 2016 20:51:01 +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 97590160AB9 for ; Tue, 27 Sep 2016 22:51:00 +0200 (CEST) Received: (qmail 79460 invoked by uid 500); 27 Sep 2016 20:50:59 -0000 Mailing-List: contact dev-help@edgent.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@edgent.apache.org Delivered-To: mailing list dev@edgent.apache.org Received: (qmail 79447 invoked by uid 99); 27 Sep 2016 20:50:59 -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, 27 Sep 2016 20:50:59 +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 1D1BF1A5C7F for ; Tue, 27 Sep 2016 20:50:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.199 X-Spam-Level: * X-Spam-Status: No, score=1.199 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pacbell.net Received: from mx2-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 hoPDeWLdYlya for ; Tue, 27 Sep 2016 20:50:58 +0000 (UTC) Received: from nm1-vm7.bullet.mail.gq1.yahoo.com (nm1-vm7.bullet.mail.gq1.yahoo.com [98.136.218.86]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id B08F85F2C5 for ; Tue, 27 Sep 2016 20:50:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pacbell.net; s=s2048; t=1475009451; bh=kU3J48A0xKFVWUH3aabNuYQiBktfW6PIM2DV1RUuSZo=; h=From:Subject:Date:To:From:Subject; b=jTZw/WyD29FVY8FIXmqVJdi+Jf1kpnzovfwS7EUbTm+XuV/UTOujzmY7hhtQkQ/MosFE5iR+eao8PddhYuvNWzLzcfqj7Mei9SysuyKU3++kiH/1cdyCzJs1V6Qa0TJVC9wgIzrpRb4VNdimM/IMIXoZYUbZdjk5VbcSOxjLtaMoSnaH1BWz3JTj5wZDIS/DWCcHQGWKD5EuzA9Lf6qHn34QAZOLcu2Q+LfsY7BSz7Ix1b5q2+x+Ai+VGL2hptHr84gJSgoNP0K7ed1fH2IBLB7zqdgwDM+yxvQg1uusZ7yy30CraRUS4x0G9Pe5A+4CRfRxim7jqWJ6pvCQho2obg== Received: from [98.137.12.174] by nm1.bullet.mail.gq1.yahoo.com with NNFMP; 27 Sep 2016 20:50:51 -0000 Received: from [208.71.42.190] by tm13.bullet.mail.gq1.yahoo.com with NNFMP; 27 Sep 2016 20:50:50 -0000 Received: from [127.0.0.1] by smtp201.mail.gq1.yahoo.com with NNFMP; 27 Sep 2016 20:50:50 -0000 X-Yahoo-Newman-Id: 929996.94745.bm@smtp201.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: xqEBNLMVM1llQ0nUXndNykKaaXQhkTkNUr6riZoQKGeGHkG Fc507ouvxxrtFOFA3Upv47rkVKTkQt4lD3CMopxLhjkQwmBo1swg_yMF4k5w tpAZpE0IX3uqs0AFqA8iDOOrWs1Ith1S0YpRHm6PhqtM5fcY1gGXlUuMBBtQ z9gyNx9PZgkhHTUZaIAfd7.xS7x3luP7fuGbDSrlt34iyl_YIYumGZ0A.45o 62t5wykE8txq9j3_O2vavA3hhLWcSc2ItH6kcroMQ0Ny.H_OMPPYNjKyom07 5CyYrWuk4iwb_Zz8t8SPMVc8xMt2CBFmLpZA5HJS3cHsSjHkQ_teHtpl67EX 0Cil6qvII7CZ7oD2V682JoClsE9oJRhkxYbIgmFKozX_BysBLZVA3teC1sIb IsiPlIDPmM9YhZboSlNeILiPggzypy0_J8JrZkfVg81NzLIZ2khCgexSPWSw SAaajhEepaln53MaxpxVSf9C2OPq9fY8GRVAeV4hP1ikxgN8_5mUxR7o3s.A XMgNronIZAlkmga_7DOtk2PY0G698GqP0klEQAMhqapy9JRE- X-Yahoo-SMTP: 3xx46ZGswBANE93QK_LLCHimmau4 From: Susan Cline Content-Type: multipart/alternative; boundary="Apple-Mail=_6E544525-B25D-4374-B0B5-CD94C0BA2CAD" Mime-Version: 1.0 (Mac OS X Mail 10.0 \(3226\)) Subject: StreamScope and the console Message-Id: <7348B667-F432-4005-AA98-0247626CA9A5@pacbell.net> Date: Tue, 27 Sep 2016 13:50:49 -0700 To: dev@edgent.apache.org X-Mailer: Apple Mail (2.3226) archived-at: Tue, 27 Sep 2016 20:51:01 -0000 --Apple-Mail=_6E544525-B25D-4374-B0B5-CD94C0BA2CAD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I=E2=80=99m trying to do the following: If a user creates an application using a DevelopmentProvider display the = tuples in a hover that are flowing through a StreamScope oplet. I=E2=80=99ve created a servlet that accepts requests when a user hovers = over a StreamScope oplet and I can get an instance of a = StreamScopeMXBean. But even though I call setEnabled(true) on the StreamScopeMXBean I never = get any =E2=80=98samples=E2=80=99 when I call = StreamScopeMXBean.getSamples(). Here is the simple code in the servlet: StreamScopeMXBean sScopeBean =3D = StreamScopeUtil.getStreamScope(jobId, opletId, = Integer.parseInt(outputPort)); if (sScopeBean !=3D null) { =09 sScopeBean.setEnabled(true); System.out.println("is streamScopeMXBean = enabled? " + sScopeBean.isEnabled()); =09 String sampleScope =3D = sScopeBean.getSamples(); System.out.println("sampleScope: " + = sampleScope); Gson gson =3D new Gson(); = response.setContentType("application/json"); response.setCharacterEncoding("UTF-8"); = response.getWriter().write(gson.toJson(sampleScope)); } The output to the command line is: is streamScopeMXBean enabled? true sampleScope: [] What am I missing? I think that if a DevelopmentProvider is used = StreamScope oplets are inserted into the graph, and I should not have to = do anything else to get the sample? Thanks, Susan --Apple-Mail=_6E544525-B25D-4374-B0B5-CD94C0BA2CAD--