Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 23833 invoked from network); 10 Nov 2008 06:33:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2008 06:33:35 -0000 Received: (qmail 93657 invoked by uid 500); 10 Nov 2008 06:33:42 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 93613 invoked by uid 500); 10 Nov 2008 06:33:42 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 93602 invoked by uid 99); 10 Nov 2008 06:33:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Nov 2008 22:33:42 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2008 06:32:31 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 31F1C234C288 for ; Sun, 9 Nov 2008 22:32:44 -0800 (PST) Message-ID: <1570019796.1226298764190.JavaMail.jira@brutus> Date: Sun, 9 Nov 2008 22:32:44 -0800 (PST) From: "Martin Thelian (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-809) MonitorAdmin - mon.statusvariable.value should be a String In-Reply-To: <1891286186.1226051924266.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-809?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Thelian updated FELIX-809: --------------------------------- Attachment: FELIX-809.patch Here is a patch to fix this issue. > MonitorAdmin - mon.statusvariable.value should be a String > ---------------------------------------------------------- > > Key: FELIX-809 > URL: https://issues.apache.org/jira/browse/FELIX-809 > Project: Felix > Issue Type: Bug > Components: Sandbox > Reporter: Martin Thelian > Attachments: FELIX-809.patch > > > As defined in the OSGi spec 4.1 the MonitorAdminImpl should send the Stat= usVariable value as String: > "The events posted by MonitorAdmin contain the following properties: > [...] > =E2=80=A2 mon.statusvariable.value: The value of the StatusVariable, repr= esented as a String" > Currently the value is converted into Integer/Float/Boolean or String: > ----- > | switch (statusVariable.getType()) { // TODO float->double, int->long > | case StatusVariable.TYPE_BOOLEAN: > |=09value =3D new Boolean(statusVariable.getBoolean()); > | =09break; > | case StatusVariable.TYPE_FLOAT: > |=09value =3D new Float(statusVariable.getFloat()); > |=09break; > | case StatusVariable.TYPE_INTEGER: > |=09value =3D new Integer(statusVariable.getInteger()); > |=09break; > | case StatusVariable.TYPE_STRING: > |=09value =3D statusVariable.getString(); > |=09break; > | } > | properties.put(MON_STATUSVARIABLE_VALUE, value); > ----- --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.