directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1495434 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
Date Fri, 21 Jun 2013 13:40:42 GMT
Author: pamarcelot
Date: Fri Jun 21 13:40:42 2013
New Revision: 1495434

URL: http://svn.apache.org/r1495434
Log:
Added a number field to edit the "Disk Synchronization Delay" in the ApacheDS Configuration
plugin.

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java?rev=1495434&r1=1495433&r2=1495434&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
Fri Jun 21 13:40:42 2013
@@ -127,6 +127,7 @@ public class LdapLdapsServersPage extend
     private Button editCipherSuiteButton;
     private Button deleteCipherSuiteButton;
     private Text replicationPingerSleepText;
+    private Text diskSynchronizationDelayText;
 
     // UI Controls Listeners
     private SelectionAdapter enableLdapCheckboxListener = new SelectionAdapter()
@@ -442,6 +443,13 @@ public class LdapLdapsServersPage extend
             getLdapServerBean().setReplPingerSleep( Integer.parseInt( replicationPingerSleepText.getText()
) );
         }
     };
+    private ModifyListener diskSynchronizationDelayTextListener = new ModifyListener()
+    {
+        public void modifyText( ModifyEvent e )
+        {
+            getDirectoryServiceBean().setDsSyncPeriodMillis( Long.parseLong( diskSynchronizationDelayText.getText()
) );
+        }
+    };
 
 
     /**
@@ -752,9 +760,14 @@ public class LdapLdapsServersPage extend
         defaultLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 )
);
 
         // Replication Pinger Sleep
-        toolkit.createLabel( composite, "Replication Pinger Sleep (seconds):" );
+        toolkit.createLabel( composite, "Replication Pinger Sleep (sec):" );
         replicationPingerSleepText = createIntegerText( toolkit, composite );
         replicationPingerSleepText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false ) );
+
+        // Disk Synchronization Delay
+        toolkit.createLabel( composite, "Disk Synchronization Delay (ms):" );
+        diskSynchronizationDelayText = createIntegerText( toolkit, composite );
+        diskSynchronizationDelayText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false ) );
     }
 
 
@@ -976,6 +989,10 @@ public class LdapLdapsServersPage extend
         // Replication Pinger Sleep
         addDirtyListener( replicationPingerSleepText );
         addModifyListener( replicationPingerSleepText, replicationPingerSleepTextListener
);
+
+        // Disk Synchronization Delay
+        addDirtyListener( diskSynchronizationDelayText );
+        addModifyListener( diskSynchronizationDelayText, diskSynchronizationDelayTextListener
);
     }
 
 
@@ -1093,6 +1110,10 @@ public class LdapLdapsServersPage extend
         // Replication Pinger Sleep
         removeDirtyListener( replicationPingerSleepText );
         removeModifyListener( replicationPingerSleepText, replicationPingerSleepTextListener
);
+
+        // Disk Synchronization Delay
+        removeDirtyListener( diskSynchronizationDelayText );
+        removeModifyListener( diskSynchronizationDelayText, diskSynchronizationDelayTextListener
);
     }
 
 
@@ -1202,6 +1223,9 @@ public class LdapLdapsServersPage extend
         // Replication Pinger Sleep
         setText( replicationPingerSleepText, "" + ldapServerBean.getReplPingerSleep() );
//$NON-NLS-1$
 
+        // Disk Synchronization Delay
+        setText( diskSynchronizationDelayText, "" + getDirectoryServiceBean().getDsSyncPeriodMillis()
); //$NON-NLS-1$
+
         addListeners();
     }
 



Mime
View raw message