directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r596939 - /directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java
Date Wed, 21 Nov 2007 05:07:19 GMT
Author: akarasulu
Date: Tue Nov 20 21:07:19 2007
New Revision: 596939

URL: http://svn.apache.org/viewvc?rev=596939&view=rev
Log:
NTP service is not directory backed

Modified:
    directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java

Modified: directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java?rev=596939&r1=596938&r2=596939&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java
Tue Nov 20 21:07:19 2007
@@ -20,14 +20,14 @@
 package org.apache.directory.server.ntp;
 
 
-import java.io.IOException;
-import java.net.InetSocketAddress;
-
 import org.apache.directory.server.ntp.protocol.NtpProtocolHandler;
-import org.apache.directory.server.protocol.shared.DirectoryBackedService;
+import org.apache.directory.server.protocol.shared.AbstractProtocolService;
 import org.apache.mina.transport.socket.nio.DatagramAcceptorConfig;
 import org.apache.mina.transport.socket.nio.SocketAcceptorConfig;
 
+import java.io.IOException;
+import java.net.InetSocketAddress;
+
 
 /**
  * Contains the configuration parameters for the NTP protocol provider.
@@ -36,10 +36,8 @@
  * @version $Rev$, $Date$
  * @org.apache.xbean.XBean
  */
-public class NtpServer extends DirectoryBackedService
+public class NtpServer extends AbstractProtocolService
 {
-    private static final long serialVersionUID = 2961795205765175775L;
-
     /**
      * The default IP port.
      */
@@ -95,6 +93,7 @@
         {
             getDatagramAcceptor().unbind( new InetSocketAddress( getIpPort() ));
         }
+        
         if ( getSocketAcceptor() != null )
         {
             getSocketAcceptor().unbind( new InetSocketAddress( getIpPort() ));



Mime
View raw message