directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r754883 - /directory/apacheds/branches/apacheds-replication/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Date Mon, 16 Mar 2009 13:01:07 GMT
Author: elecharny
Date: Mon Mar 16 13:01:07 2009
New Revision: 754883

URL: http://svn.apache.org/viewvc?rev=754883&view=rev
Log:
o Added javadoc for parameters and their setters

Modified:
    directory/apacheds/branches/apacheds-replication/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java

Modified: directory/apacheds/branches/apacheds-replication/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?rev=754883&r1=754882&r2=754883&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-replication/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
(original)
+++ directory/apacheds/branches/apacheds-replication/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Mon Mar 16 13:01:07 2009
@@ -257,16 +257,41 @@
     public static final int MAX_SIZE_LIMIT_DEFAULT = 100;
     public static final int MAX_TIME_LIMIT_DEFAULT = 10000;
 
+    /** The instance Id */
     private String instanceId;
+    
+    /** The server working directory */
     private File workingDirectory = new File( "server-work" );
+    
+    /** 
+     * A flag used to shutdown the VM when stopping the server. Useful
+     * when the server is standalone. If the server is embedded, we don't
+     * want to shutdown the VM
+     */
     private boolean exitVmOnShutdown = true; // allow by default
+    
+    /** A flag used to indicate that a shutdown hook has been installed */
     private boolean shutdownHookEnabled = true; // allow by default
+    
+    /** Manage anonymous access to entries other than the RootDSE */
     private boolean allowAnonymousAccess = true; // allow by default
+    
+    /** Manage the basic access control checks */
     private boolean accessControlEnabled; // off by default
+    
+    /** Manage the operational attributes denormalization */
     private boolean denormalizeOpAttrsEnabled; // off by default
+    
+    /** The list of declared interceptors */
     private List<Interceptor> interceptors;
+    
+    /** The System partition */
     private Partition systemPartition;
+    
+    /** The set of all declared partitions */
     private Set<Partition> partitions = new HashSet<Partition>();
+    
+    /** A list of LDIF entries to inject at startup */
     private List<? extends LdifEntry> testEntries = new ArrayList<LdifEntry>();
// List<Attributes>
     private EventService eventService;
 
@@ -509,12 +534,19 @@
     }
 
 
+    /**
+     * return true if the operational attributes must be normalized when returned
+     */
     public boolean isDenormalizeOpAttrsEnabled()
     {
         return denormalizeOpAttrsEnabled;
     }
 
 
+    /**
+     * Sets whether the operational attributes are denormalized when returned
+     * @param denormalizeOpAttrsEnabled The flag value
+     */
     public void setDenormalizeOpAttrsEnabled( boolean denormalizeOpAttrsEnabled )
     {
         this.denormalizeOpAttrsEnabled = denormalizeOpAttrsEnabled;
@@ -1695,6 +1727,14 @@
      */
     public void setReplicaId( int replicaId )
     {
-        this.replicaId = replicaId;
+        if ( ( replicaId < 0 ) || ( replicaId > 999 ) )
+        {
+            LOG.error( "The replicaId must be in [0, 999]" );
+            this.replicaId = 0;
+        }
+        else
+        {
+            this.replicaId = replicaId;
+        }
     }
 }



Mime
View raw message