Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 87680 invoked from network); 22 Aug 2005 20:53:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2005 20:53:42 -0000 Received: (qmail 84679 invoked by uid 500); 22 Aug 2005 20:53:39 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 84331 invoked by uid 500); 22 Aug 2005 20:53:38 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 84318 invoked by uid 99); 22 Aug 2005 20:53:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 13:53:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [66.250.40.202] (HELO saturn.opentools.org) (66.250.40.202) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 13:53:56 -0700 Received: by saturn.opentools.org (Postfix, from userid 500) id B0E2F3FB4; Mon, 22 Aug 2005 17:09:03 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by saturn.opentools.org (Postfix) with ESMTP id AD28FF3A9 for ; Mon, 22 Aug 2005 17:09:03 -0400 (EDT) Date: Mon, 22 Aug 2005 17:09:03 -0400 (EDT) From: Aaron Mulder X-X-Sender: ammulder@saturn.opentools.org To: dev@geronimo.apache.org Subject: Network Properties & Naming Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N So we have 3 properties for every network connector. They are probably most clearly described by using the analogous java.net objects: InetAddress -- the hostname or IP to listen on, settable port -- the port to listen on, settable InetSocketAddress -- the combination of the previous two, read-only based on their settings Right now, we use the property names (respectively): "host" (String, for a host name or IP) "port" (int) "listenAddress" (InetSocketAddress) So for any network listener, you configure the host and port, they typically get injected into the constructor of the GBean in question, and then at runtime you can get the host, port, or listenAddress (combination). We like using the simple String and int for the settable properties, to make the management interface simple. Jeff's raised the concern that the name "host" might be misleading in Tomcat, where there's already a well-known "Host" object with a name, so it might not be clear what the "host" property is supposed to refer to. I guess we could change our properties to "address", "port", and "listenAddress", or "listenAddress", "port", and "socketAddress". Also, originally, the InetSocketAddress property was in there so we could distinguish any network-related GBeans in order to show the list during the startup sequence. That's no longer needed since we can now search by interface instead. So we might drop that property. But it could also be useful to keep it and ask for it to represent the "current listen state", so if you change the port in the management console the "port" property might show the new port, but the "InetSocketAddress" property would show the old port until the connector was restarted. Any thoughts on whether it's worth changing these properties and what they should be changed to? Thanks, Aaron