From b4f8838b15342670c31753a484abf0129e3c9653 Mon Sep 17 00:00:00 2001
From: jcduff <jcduff@localhost>
Date: Thu, 23 Oct 2008 14:04:24 +0000
Subject: [PATCH] The commit will bring the following features :     - An updated version of the underlying database. BDB JE 3.3 is now used.     - Attribute API refactoring providing a better abstraction and offering improved performances.     - A new GUI called the Control-Panel to replace the Status-Panel: the specifications for this       GUI are available on OpenDS Wiki and contains a link to a mockup.        See <https://www.opends.org/wiki/page/ControlPanelUISpecification>.     - Some changes in the replication protocol to implement "Assured Replication Mode". The        specifications are on OpenDS Wiki at <https://www.opends.org/wiki/page/AssuredMode> and section 7       described some of the replication changes required to support this. Assured Replication is not finished,       but the main replication protocol changes to support it are done. As explained by Gilles on an email on       the Dev mailing list (http://markmail.org/message/46rgo3meq3vriy4a), with these changes the newer versions       of OpenDS may not be able to replicate with OpenDS 1.0 instances.     - Support for Service Tags on the platforms where the functionality is available and enabled. Specifications       are published at <https://www.opends.org/wiki/page/OpenDSServiceTagEnabled>. For more information on       Service Tags see <http://wikis.sun.com/display/ServiceTag/Sun+Service+Tag+FAQ>.     - The Admin Connector service. In order to provide agentry of the OpenDS server at any time, a new service       has been added, dedicated to the administration, configuration and monitoring of the server.       An overview of the Admin Connector service and it's use is available on the       OpenDS wiki <https://www.opends.org/wiki/page/ManagingAdministrationTrafficToTheServer>     - Updates to the various command line tools to support the Admin Connector service.     - Some internal re-architecting of the server to put the foundation of future developments such as virtual       directory services. The new NetworkGroups and WorkFlow internal services which have been specified in       <https://www.opends.org/wiki/page/BasicOperationRoutingThroughNetworkGroup> are now implemented.     - Many bug fixes...

---
 opendj-sdk/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java |   39 ++++++++++++++++++++++++---------------
 1 files changed, 24 insertions(+), 15 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java b/opendj-sdk/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java
index 9911ff7..7b8a29b 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/workflowelement/WorkflowElement.java
@@ -26,7 +26,6 @@
  */
 package org.opends.server.workflowelement;
 
-import static org.opends.messages.ConfigMessages.*;
 
 import java.util.List;
 import org.opends.server.admin.std.server.WorkflowElementCfg;
@@ -37,13 +36,13 @@
 /**
  * This class defines the super class for all the workflow elements. A workflow
  * element is a task in a workflow. A workflow element can wrap a physical
- * repository such as a local backend, a remote LDAP server or a local ldif
+ * repository such as a local backend, a remote LDAP server or a local LDIF
  * file. A workflow element can also be used to route operations. This is the
  * case for load balancing and distribution. And workflow element can be used
  * in a virtual environment to transform data (DN and attribute renaming,
  * attribute value renaming...).
  *
- * @param  <T>  The type of configuration handled by this workflow elelemnt.
+ * @param  <T>  The type of configuration handled by this workflow element.
  */
 public abstract class WorkflowElement
        <T extends WorkflowElementCfg>
@@ -53,13 +52,14 @@
   private boolean isPrivate = false;
 
 
+  // An information indicating the type of the current workflow element.
+  // This information is for debug and tooling purpose only.
+  private String workflowElementTypeInfo = "not defined";
+
+
   // The workflow element identifier.
   private String workflowElementID = null;
 
-  // The parent of the workflow element (null if the workflow element is
-  // the root of the processing tree).
-  private WorkflowElement<?> parent = null;
-
 
   /**
    * Creates a new instance of the workflow element.
@@ -74,27 +74,36 @@
    *
    * @param workflowElementID  the workflow element identifier as defined
    *                           in the configuration.
+   * @param workflowElementTypeInfo  an information to indicate the type of
+   *                                 the current workflow element. For example
+   *                                 "Backend" if the current workflow element
+   *                                 is a local backend workflow element.
    */
-  public void initialize(String workflowElementID)
+  public void initialize(
+      String workflowElementID,
+      String workflowElementTypeInfo)
   {
     this.workflowElementID = workflowElementID;
+    this.workflowElementTypeInfo = workflowElementTypeInfo;
   }
 
 
   /**
-   * Set the parent of the current workflow element.
+   * Get the type of the workflow element. The type is a string information
+   * indicating which type is the current workflow element. This information
+   * is intended to be used by tools for trace and debug purpose.
    *
-   * @param parent  the parent of the workflow element
+   * @return the type of the workflow element.
    */
-  protected void setParent(WorkflowElement<?> parent)
+  public String getWorkflowElementTypeInfo()
   {
-    this.parent = parent;
+    return this.workflowElementTypeInfo;
   }
 
 
   /**
    * Indicates whether the provided configuration is acceptable for
-   * this workflow elelement.
+   * this workflow element.
    *
    * @param  configuration        The workflow element configuration for
    *                              which to make the determination.
@@ -132,7 +141,7 @@
    * @param operation the operation to execute
    *
    * @throws CanceledOperationException if this operation should be
-   * cancelled
+   * canceled
    */
   public abstract void execute(Operation operation)
       throws CanceledOperationException;
@@ -167,7 +176,7 @@
   /**
    * Provides the workflow element identifier.
    *
-   * @return the worflow element identifier
+   * @return the workflow element identifier
    */
   public String getWorkflowElementID()
   {

--
Gitblit v1.10.0