directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r709817 - /directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/ProtocolService.java
Date Sun, 02 Nov 2008 00:40:55 GMT
Author: elecharny
Date: Sat Nov  1 17:40:55 2008
New Revision: 709817

URL: http://svn.apache.org/viewvc?rev=709817&view=rev
Log:
Added getters and setters for the new TCP/UDP/NBThreads values used to configure MINA2

Modified:
    directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/ProtocolService.java

Modified: directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/ProtocolService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/ProtocolService.java?rev=709817&r1=709816&r2=709817&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/ProtocolService.java
(original)
+++ directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/ProtocolService.java
Sat Nov  1 17:40:55 2008
@@ -20,8 +20,8 @@
 
 
 import org.apache.directory.server.core.DirectoryService;
-import org.apache.mina.transport.socket.nio.NioDatagramAcceptor;
-import org.apache.mina.transport.socket.nio.NioSocketAcceptor;
+import org.apache.mina.transport.socket.DatagramAcceptor;
+import org.apache.mina.transport.socket.SocketAcceptor;
 
 import java.util.Set;
 
@@ -64,16 +64,7 @@
      *
      * @return the MINA DatagramAcceptor used for UDP transports
      */
-    NioDatagramAcceptor getDatagramAcceptor();
-
-
-    /**
-     * If this protocol service supports UDP transport then this sets the
-     * MINA DatagramAcceptor it uses.
-     *
-     * @param datagramAcceptor the MINA DatagramAcceptor used for UDP transport
-     */
-    void setDatagramAcceptor( NioDatagramAcceptor datagramAcceptor );
+    DatagramAcceptor getDatagramAcceptor();
 
 
     /**
@@ -82,16 +73,7 @@
      *
      * @return the MINA SocketAcceptor used for TCP transport
      */
-    NioSocketAcceptor getSocketAcceptor();
-
-
-    /**
-     * If this protocol service support TCP transport then this sets the
-     * MINA SocketAcceptor it uses.
-     *
-     * @param socketAcceptor the MINA SocketAcceptor used for TCP transport
-     */
-    void setSocketAcceptor( NioSocketAcceptor socketAcceptor );
+    SocketAcceptor getSocketAcceptor();
 
 
     /**
@@ -162,7 +144,9 @@
 
 
     /**
-     * Gets the IP port for this service.
+     * Gets the IP port for this service. This is just a temporary
+     * storage for the service port, as we will move it to either
+     * TCP or UDP port.
      *
      * @return the IP port for this service
      */
@@ -170,6 +154,22 @@
 
 
     /**
+     * Gets the UDP port for this service.
+     *
+     * @return the UDP port for this service
+     */
+    int getUdpPort();
+
+
+    /**
+     * Gets the TCP port for this service.
+     *
+     * @return the TCP port for this service
+     */
+    int getTcpPort();
+
+
+    /**
      * Sets the IP port for this service.
      *
      * @param ipPort the ip port for this service
@@ -179,6 +179,24 @@
 
 
     /**
+     * Sets the UDP port for this service.
+     *
+     * @param ipPort the udp port for this service
+     * @throws IllegalArgumentException if the port number is not within a valid range
+     */
+    void setUdpPort( int udpPort );
+
+
+    /**
+     * Sets the TCP port for this service.
+     *
+     * @param tcpPort the tcp port for this service
+     * @throws IllegalArgumentException if the port number is not within a valid range
+     */
+    void setTcpPort( int tcpPort );
+
+
+    /**
      * Gets the transport protocols used by this service. At this point services
      * which support more than one transport are configured to bind to that transport
      * on the same port.



Mime
View raw message