directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r111223 - incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry
Date Wed, 08 Dec 2004 06:06:33 GMT
Author: trustin
Date: Tue Dec  7 22:06:29 2004
New Revision: 111223

URL: http://svn.apache.org/viewcvs?view=rev&rev=111223
Log:
Reorganized transport types:
 * TCP -> SOCKET
 * UDP -> DATAGRAM
 * added MULTICAST

and I'm changing upstream layer into a simple wrapper for downstream SessionHandler.
Modified:
   incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/Service.java
   incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/ServiceRegistry.java
   incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/TransportType.java

Modified: incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/Service.java
Url: http://svn.apache.org/viewcvs/incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/Service.java?view=diff&rev=111223&p1=incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/Service.java&r1=111222&p2=incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/Service.java&r2=111223
==============================================================================
--- incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/Service.java
(original)
+++ incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/Service.java
Tue Dec  7 22:06:29 2004
@@ -19,6 +19,8 @@
  */
 package org.apache.mina.registry;
 
+import org.apache.mina.downstream.SessionHandler;
+
 
 /**
  * TODO Insert type comment.
@@ -33,5 +35,5 @@
 
     int getPort();
 
-    Object getSessionHandler();
+    SessionHandler getSessionHandler();
 }

Modified: incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/ServiceRegistry.java
Url: http://svn.apache.org/viewcvs/incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/ServiceRegistry.java?view=diff&rev=111223&p1=incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/ServiceRegistry.java&r1=111222&p2=incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/ServiceRegistry.java&r2=111223
==============================================================================
--- incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/ServiceRegistry.java
(original)
+++ incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/ServiceRegistry.java
Tue Dec  7 22:06:29 2004
@@ -20,9 +20,10 @@
 package org.apache.mina.registry;
 
 import java.io.IOException;
-
 import java.util.Iterator;
 
+import org.apache.mina.downstream.SessionHandler;
+
 
 /**
  * Interface for the internet service registry.  The registry is used by
@@ -34,11 +35,7 @@
  */
 public interface ServiceRegistry {
     void bind(Service service,
-              org.apache.mina.downstream.SessionHandler sessionHandler)
-       throws IOException;
-
-    void bind(Service service,
-              org.apache.mina.upstream.SessionHandler sessionHandler)
+              SessionHandler sessionHandler)
        throws IOException;
 
     void unbind(Service service);

Modified: incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/TransportType.java
Url: http://svn.apache.org/viewcvs/incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/TransportType.java?view=diff&rev=111223&p1=incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/TransportType.java&r1=111222&p2=incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/TransportType.java&r2=111223
==============================================================================
--- incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/TransportType.java
(original)
+++ incubator/directory/seda/branches/trustin/src/java/org/apache/mina/registry/TransportType.java
Tue Dec  7 22:06:29 2004
@@ -27,8 +27,9 @@
  * @version $Rev$, $Date$
  */
 public class TransportType {
-    public static final TransportType TCP = new TransportType("TCP");
-    public static final TransportType UDP = new TransportType("UDP");
+    public static final TransportType SOCKET = new TransportType("SOCKET");
+    public static final TransportType DATAGRAM = new TransportType("DATAGRAM");
+    public static final TransportType MULTICAST = new TransportType("MULTICAST");
     public static final TransportType VM = new TransportType("VM");
     private final String strVal;
 

Mime
View raw message