james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1049463 - in /james/server/trunk/netty-socket/src/main/java/org/apache/james/socket: ServerMBean.java netty/AbstractConfigurableAsyncServer.java
Date Wed, 15 Dec 2010 08:56:26 GMT
Author: norman
Date: Wed Dec 15 08:56:26 2010
New Revision: 1049463

URL: http://svn.apache.org/viewvc?rev=1049463&view=rev
Log:
Expose bound IPAddress via JMX. See JAMES-1057

Modified:
    james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/ServerMBean.java
    james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractConfigurableAsyncServer.java

Modified: james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/ServerMBean.java
URL: http://svn.apache.org/viewvc/james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/ServerMBean.java?rev=1049463&r1=1049462&r2=1049463&view=diff
==============================================================================
--- james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/ServerMBean.java
(original)
+++ james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/ServerMBean.java
Wed Dec 15 08:56:26 2010
@@ -51,7 +51,14 @@ public interface ServerMBean {
      */
 	public boolean getStartTLSSupported();
 
-	
+
+    /**
+     * Return the IPAddress to which the server is bound
+     *  
+     * @return ipAddress or null if not bound to some specifc ip
+     */
+    public String getIPAddress();
+    
     /**
      * Return the port number to which ther server is bound
      * @return

Modified: james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractConfigurableAsyncServer.java
URL: http://svn.apache.org/viewvc/james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractConfigurableAsyncServer.java?rev=1049463&r1=1049462&r2=1049463&view=diff
==============================================================================
--- james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractConfigurableAsyncServer.java
(original)
+++ james/server/trunk/netty-socket/src/main/java/org/apache/james/socket/netty/AbstractConfigurableAsyncServer.java
Wed Dec 15 08:56:26 2010
@@ -509,4 +509,12 @@ public abstract class AbstractConfigurab
         return true;
     }
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.james.socket.ServerMBean#getIPAddress()
+     */
+    public String getIPAddress() {
+        return getIP();
+    }
+
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message