You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2015/05/26 15:48:40 UTC

svn commit: r1681758 - /directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/OptionsPage.java

Author: elecharny
Date: Tue May 26 13:48:40 2015
New Revision: 1681758

URL: http://svn.apache.org/r1681758
Log:
Removed configuration parameters from teh Options Page, as they are already managed in the tuning or overview page

Modified:
    directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/OptionsPage.java

Modified: directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/OptionsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/OptionsPage.java?rev=1681758&r1=1681757&r2=1681758&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/OptionsPage.java (original)
+++ directory/studio/trunk/plugins/openldap.config.editor/src/main/java/org/apache/directory/studio/openldap/config/editor/pages/OptionsPage.java Tue May 26 13:48:40 2015
@@ -53,11 +53,6 @@ public class OptionsPage extends OpenLDA
     /** The olcPluginLogFile parameter */
     private Text pluginLogFileText; 
     
-    private Text maxPduSizeAnonymousSessionsText;
-    private Text maxPduSizeAuthenticatedSessionsText;
-    private Text tcpBufferSizeText;
-    private Text maxPendingRequestsAnonymousSessionText;
-    private Text maxPendingRequestsAuthenticatedSessionText;
     private Text numberSecondsClosingIdleConnectionText;
     private Text numberSecondsClosingConnectionWithOutstandingWriteText;
     private Text authenticationAuxpropPluginsText;
@@ -123,8 +118,6 @@ public class OptionsPage extends OpenLDA
         createConnectionLimitsSection( toolkit, leftComposite );
         createIndicesSection( toolkit, leftComposite );
         createSaslSection( toolkit, rightComposite );
-        createSocketAndBufferLimitsSection( toolkit, rightComposite );
-        createThreadsSection( toolkit, rightComposite );
         createTlsSection( toolkit, rightComposite );
 
         refreshUI();
@@ -151,34 +144,6 @@ public class OptionsPage extends OpenLDA
 
 
     /**
-     * Creates the Socket & Buffer Limits section.
-     *
-     * @param toolkit the toolkit
-     * @param parent the parent composite
-     */
-    private void createSocketAndBufferLimitsSection( FormToolkit toolkit, Composite parent )
-    {
-        Section section = createSection( toolkit, parent, "Socket & Buffer Limits" );
-        Composite composite = createSectionComposite( toolkit, section, 2, false );
-
-        // Max PDU Size Anonymous Sessions Text
-        toolkit.createLabel( composite, "Maximum incoming LDAP PDU size for anonymous sessions:" );
-        maxPduSizeAnonymousSessionsText = toolkit.createText( composite, "" );
-        maxPduSizeAnonymousSessionsText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
-
-        // Max PDU Size Authenticated Sessions Text
-        toolkit.createLabel( composite, "Maximum incoming LDAP PDU size for authenticated sessions:" );
-        maxPduSizeAuthenticatedSessionsText = toolkit.createText( composite, "" );
-        maxPduSizeAuthenticatedSessionsText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
-
-        // TCP Buffer Size Text
-        toolkit.createLabel( composite, "TCP Buffer Size:" );
-        tcpBufferSizeText = toolkit.createText( composite, "" );
-        tcpBufferSizeText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
-    }
-
-
-    /**
      * Creates the Connection Limits section.
      *
      * @param toolkit the toolkit
@@ -189,16 +154,6 @@ public class OptionsPage extends OpenLDA
         Section section = createSection( toolkit, parent, "Connection Limits" );
         Composite composite = createSectionComposite( toolkit, section, 2, false );
 
-        // Max Pending Requests Anonymous Session Text
-        toolkit.createLabel( composite, "Maximum number of pending requests for an anonymous session:" );
-        maxPendingRequestsAnonymousSessionText = toolkit.createText( composite, "" );
-        maxPendingRequestsAnonymousSessionText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
-
-        // Max Pending Requests Authenticated Session Text
-        toolkit.createLabel( composite, "Maximum number of pending requests for an authenticated session:" );
-        maxPendingRequestsAuthenticatedSessionText = toolkit.createText( composite, "" );
-        maxPendingRequestsAuthenticatedSessionText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
-
         // Number Seconds Closing Idle Connection Text
         toolkit.createLabel( composite, "Number of seconds before closing an idle connection:" );
         numberSecondsClosingIdleConnectionText = toolkit.createText( composite, "" );
@@ -213,19 +168,6 @@ public class OptionsPage extends OpenLDA
 
 
     /**
-     * Creates the Threads section.
-     *
-     * @param toolkit the toolkit
-     * @param parent the parent composite
-     */
-    private void createThreadsSection( FormToolkit toolkit, Composite parent )
-    {
-        Section section = createSection( toolkit, parent, "Threads" );
-        Composite composite = createSectionComposite( toolkit, section, 2, false );
-    }
-
-
-    /**
      * Creates the SASL section.
      *
      * @param toolkit the toolkit
@@ -476,66 +418,6 @@ public class OptionsPage extends OpenLDA
                     pluginLogFileText.setText( "" );
                 }
 
-                // Max PDU Size Anonymous Sessions Text
-                String maxPduSizeAnonymousSessions = global.getOlcSockbufMaxIncoming();
-
-                if ( maxPduSizeAnonymousSessions != null )
-                {
-                    maxPduSizeAnonymousSessionsText.setText( maxPduSizeAnonymousSessions );
-                }
-                else
-                {
-                    maxPduSizeAnonymousSessionsText.setText( "" );
-                }
-
-                // Max PDU Size Authenticated Sessions Text
-                String maxPduSizeAuthenticatedSessions = global.getOlcSockbufMaxIncomingAuth();
-
-                if ( maxPduSizeAuthenticatedSessions != null )
-                {
-                    maxPduSizeAuthenticatedSessionsText.setText( maxPduSizeAuthenticatedSessions );
-                }
-                else
-                {
-                    maxPduSizeAuthenticatedSessionsText.setText( "" );
-                }
-
-                // TCP Buffer Size Text
-                List<String> tcpBufferSize = global.getOlcTCPBuffer();
-
-                if ( maxPduSizeAuthenticatedSessions != null )
-                {
-                    tcpBufferSizeText.setText( tcpBufferSize + "" );
-                }
-                else
-                {
-                    tcpBufferSizeText.setText( "" );
-                }
-
-                // Max Pending Requests Anonymous Session Text
-                Integer maxPendingRequestsAnonymousSession = global.getOlcConnMaxPending();
-
-                if ( maxPendingRequestsAnonymousSession != null )
-                {
-                    maxPendingRequestsAnonymousSessionText.setText( maxPendingRequestsAnonymousSession + "" );
-                }
-                else
-                {
-                    maxPendingRequestsAnonymousSessionText.setText( "" );
-                }
-
-                // Max Pending Requests Authenticated Session Text
-                Integer maxPendingRequestsAuthenticatedSession = global.getOlcConnMaxPendingAuth();
-
-                if ( maxPendingRequestsAuthenticatedSession != null )
-                {
-                    maxPendingRequestsAuthenticatedSessionText.setText( maxPendingRequestsAuthenticatedSession + "" );
-                }
-                else
-                {
-                    maxPendingRequestsAuthenticatedSessionText.setText( "" );
-                }
-
                 // Number Seconds Closing Idle Connection Text
                 Integer numberSecondsClosingIdleConnection = global.getOlcIdleTimeout();