From b1e3b0ccdaa423b68ef6fa2fee67d3e09990985f Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 24 Sep 2007 23:15:46 +0000
Subject: [PATCH] Perform a significant refactoring of the local backend workflow element classes so that they use smaller method sizes, which allows the VM to better optimize the code.  Also, move the code for processing each type of operation into the class for the associated operation rather than keeping it all in the LocalBackendWorkflowElement class.

---
 opends/src/server/org/opends/server/workflowelement/WorkflowElement.java |   31 ++++++++++++++++++++++---------
 1 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java b/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java
index fb1a6cc..ce81dd2 100644
--- a/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java
+++ b/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java
@@ -40,17 +40,14 @@
  */
 public abstract class WorkflowElement
 {
+  // Indicates whether the workflow element encapsulates a private local
+  // backend.
+  private boolean isPrivate = false;
 
   // The workflow element identifier.
   private String workflowElementID = null;
 
 
-  /**
-   * Indicates whether the workflow element encapsulates a private
-   * local backend.
-   */
-  protected boolean isPrivate = false;
-
 
   /**
    * Creates a new instance of the workflow element.
@@ -64,14 +61,14 @@
   }
 
 
+
   /**
    * Executes the workflow element for an operation.
    *
    * @param operation the operation to execute
    */
-  public abstract void execute(
-      Operation operation
-      );
+  public abstract void execute(Operation operation);
+
 
 
   /**
@@ -87,6 +84,21 @@
   }
 
 
+
+  /**
+   * Specifies whether the workflow element encapsulates a private local
+   * backend.
+   *
+   * @param  isPrivate  Indicates whether the workflow element encapsulates a
+   *                    private local backend.
+   */
+  protected void setPrivate(boolean isPrivate)
+  {
+    this.isPrivate = isPrivate;
+  }
+
+
+
   /**
    * Provides the workflow element identifier.
    *
@@ -97,3 +109,4 @@
     return workflowElementID;
   }
 }
+

--
Gitblit v1.10.0