directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r696371 - in /directory/apacheds/trunk: protocol-changepw/src/main/java/org/apache/directory/server/changepw/ protocol-dns/src/main/java/org/apache/directory/server/dns/ protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/k...
Date Wed, 17 Sep 2008 17:13:16 GMT
Author: elecharny
Date: Wed Sep 17 10:13:15 2008
New Revision: 696371

URL: http://svn.apache.org/viewvc?rev=696371&view=rev
Log:
Added some logs when the services are started or stopped. This will fix DIRSERVER-1165

Modified:
    directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java
    directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
    directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapService.java

Modified: directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java?rev=696371&r1=696370&r2=696371&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java
(original)
+++ directory/apacheds/trunk/protocol-changepw/src/main/java/org/apache/directory/server/changepw/ChangePasswordServer.java
Wed Sep 17 10:13:15 2008
@@ -35,6 +35,8 @@
 import org.apache.directory.server.protocol.shared.DirectoryBackedService;
 import org.apache.mina.transport.socket.nio.DatagramAcceptorConfig;
 import org.apache.mina.transport.socket.nio.SocketAcceptorConfig;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**
@@ -49,6 +51,9 @@
 {
     private static final long serialVersionUID = 3509208713288140629L;
 
+    /** logger for this class */
+    private static final Logger LOG = LoggerFactory.getLogger( ChangePasswordServer.class.getName()
);
+
     /** The default change password principal name. */
     private static final String SERVICE_PRINCIPAL_DEFAULT = "kadmin/changepw@EXAMPLE.COM";
 
@@ -277,6 +282,9 @@
             getSocketAcceptor().bind( new InetSocketAddress( getIpPort() ),
                     new ChangePasswordProtocolHandler( this, store ), tcpConfig );
         }
+        
+        LOG.info( "ChangePassword service started." );
+        System.out.println( "ChangePassword service started." );
     }
 
 
@@ -290,6 +298,9 @@
         {
             getSocketAcceptor().unbind( new InetSocketAddress( getIpPort() ));
         }
+
+        LOG.info( "ChangePassword service stopped." );
+        System.out.println( "ChangePassword service stopped." );
     }
 
 

Modified: directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java?rev=696371&r1=696370&r2=696371&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
(original)
+++ directory/apacheds/trunk/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
Wed Sep 17 10:13:15 2008
@@ -29,6 +29,8 @@
 import org.apache.directory.server.protocol.shared.DirectoryBackedService;
 import org.apache.mina.transport.socket.nio.DatagramAcceptorConfig;
 import org.apache.mina.transport.socket.nio.SocketAcceptorConfig;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**
@@ -43,6 +45,9 @@
 {
     private static final long serialVersionUID = 6943138644427163149L;
 
+    /** logger for this class */
+    private static final Logger LOG = LoggerFactory.getLogger( DnsServer.class.getName()
);
+    
     /** The default IP port. */
     private static final int IP_PORT_DEFAULT = 53;
 
@@ -84,6 +89,9 @@
             tcpConfig.setReuseAddress( true );
             getSocketAcceptor().bind( new InetSocketAddress( getIpPort() ), new DnsProtocolHandler(
this, store ), tcpConfig );
         }
+        
+        LOG.info( "DSN service started." );
+        System.out.println( "DSN service started." );
     }
 
 
@@ -96,5 +104,8 @@
         {
             getSocketAcceptor().unbind( new InetSocketAddress( getIpPort() ));
         }
+        
+        LOG.info( "DSN service stopped." );
+        System.out.println( "DSN service stopped." );
     }
 }

Modified: directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java?rev=696371&r1=696370&r2=696371&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
Wed Sep 17 10:13:15 2008
@@ -35,6 +35,8 @@
 import org.apache.directory.server.protocol.shared.DirectoryBackedService;
 import org.apache.mina.transport.socket.nio.DatagramAcceptorConfig;
 import org.apache.mina.transport.socket.nio.SocketAcceptorConfig;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**
@@ -49,6 +51,10 @@
 {
     private static final long serialVersionUID = 522567370475574165L;
 
+    /** logger for this class */
+    private static final Logger LOG = LoggerFactory.getLogger( KdcServer.class.getName()
);
+    
+    
     /** The default kdc port */
     private static final int DEFAULT_IP_PORT = 88;
 
@@ -453,6 +459,9 @@
             tcpConfig.setReuseAddress( true );
             getSocketAcceptor().bind( new InetSocketAddress( getIpPort() ), new KerberosProtocolHandler(
this, store ), tcpConfig );
         }
+        
+        LOG.info( "Kerberos service started." );
+        System.out.println( "Kerberos service started." );
     }
 
     
@@ -466,6 +475,9 @@
         {
             getSocketAcceptor().unbind( new InetSocketAddress( getIpPort() ));
         }
+        
+        LOG.info( "Kerberos service stopped." );
+        System.out.println( "Kerberos service stopped." );
     }
 
 

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapService.java?rev=696371&r1=696370&r2=696371&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapService.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapService.java
Wed Sep 17 10:13:15 2008
@@ -312,7 +312,7 @@
         }
 
         /*
-         * The serveur is now initialized, we can
+         * The server is now initialized, we can
          * install the default requests handlers, which need 
          * access to the DirectoryServer instance.
          */ 
@@ -321,6 +321,17 @@
         startLDAP0( getIpPort(), chain );
         
         started = true;
+        
+        if ( isEnableLdaps() )
+        {
+            LOG.info( "Ldaps service started." );
+            System.out.println( "Ldaps service started." );
+        }
+        else
+        {
+            LOG.info( "Ldap service started." );
+            System.out.println( "Ldap service started." );
+        }
     }
 
 
@@ -379,6 +390,17 @@
         {
             LOG.warn( "Failed to sent NoD.", e );
         }
+
+        if ( isEnableLdaps() )
+        {
+            LOG.info( "Ldaps service stopped." );
+            System.out.println( "Ldaps service stopped." );
+        }
+        else
+        {
+            LOG.info( "Ldap service stopped." );
+            System.out.println( "Ldap service stopped." );
+        }
     }
 
 



Mime
View raw message