From 6723921e50a71cc385b7bd8d19bf1d9ed4f6a659 Mon Sep 17 00:00:00 2001
From: floblanc <floblanc@localhost>
Date: Thu, 05 Feb 2009 16:31:59 +0000
Subject: [PATCH] OLC: the workflow element saturation index is set to 0 when UP and 100 when completely saturated. Initialized to 0.
---
opends/src/server/org/opends/server/workflowelement/ObservableWorkflowElementStatus.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/workflowelement/ObservableWorkflowElementStatus.java b/opends/src/server/org/opends/server/workflowelement/ObservableWorkflowElementStatus.java
index 628c7c3..7d66dcc 100644
--- a/opends/src/server/org/opends/server/workflowelement/ObservableWorkflowElementStatus.java
+++ b/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();
--
Gitblit v1.10.0