mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

floblanc
05.31.2009 6723921e50a71cc385b7bd8d19bf1d9ed4f6a659
OLC: the workflow element saturation index is set to 0 when UP and 100 when completely saturated. Initialized to 0.
1 files modified
10 ■■■■ changed files
opends/src/server/org/opends/server/workflowelement/ObservableWorkflowElementStatus.java 10 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/workflowelement/ObservableWorkflowElementStatus.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Copyright 2008-2009 Sun Microsystems, Inc.
 */
package org.opends.server.workflowelement;
@@ -36,10 +36,10 @@
 * The measure of the health is defined by an index - the saturation index -
 * whose value may vary within the range [0 - 100].
 * <p>
 * An index value of 100 means that the workflow element fully operational.
 * An index value of 0 means that the workflow element is no more operational.
 * An index value of 0 means that the workflow element fully operational.
 * An index value of 100 means that the workflow element is no more operational.
 * An value in between means that the workflow element is in a degraded mode.
 * The lower the index value, the more degraded the workflow element is.
 * The higher the index value, the more degraded the workflow element is.
 */
public class ObservableWorkflowElementStatus
    extends ObservableWorkflowElement
@@ -47,7 +47,7 @@
  /**
   * The health indicator (aka saturation index) of the workflow element.
   */
  private int saturationIndex = 100;
  private int saturationIndex = 0;
  private Object saturationIndexLock = new Object();