mx4j/src/core/mx4j/monitor MX4JGaugeMonitor.java,1.2,1.3 MX4JMonitor.java,1.3,1.4

Jeremy Boynes <[email protected]> Sun, 13 Feb 2005 18:10:23 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/mx4j/monitor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2851/src/core/mx4j/monitor

Modified Files:
	MX4JGaugeMonitor.java MX4JMonitor.java 
Log Message:
Fix for [ 1121885 ] Notification status should be cleared when monitor stops

Index: MX4JMonitor.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/mx4j/monitor/MX4JMonitor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** MX4JMonitor.java	13 Nov 2004 16:38:54 -0000	1.3
--- MX4JMonitor.java	13 Feb 2005 18:10:21 -0000	1.4
***************
*** 11,14 ****
--- 11,15 ----
  import java.util.ArrayList;
  import java.util.HashMap;
+ import java.util.Iterator;
  import java.util.List;
  import java.util.Map;
***************
*** 131,134 ****
--- 132,140 ----
        active = false;
        stopMonitor();
+       for (Iterator i = infos.values().iterator(); i.hasNext();)
+       {
+          MonitorInfo info = (MonitorInfo) i.next();
+          info.clearNotificationStatus();
+       }
     }
  
***************
*** 352,355 ****
--- 358,366 ----
           return "errorNotified=" + isErrorNotified();
        }
+ 
+       public void clearNotificationStatus()
+       {
+          errorNotified = false;
+       }
     }
  }

Index: MX4JGaugeMonitor.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/mx4j/monitor/MX4JGaugeMonitor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MX4JGaugeMonitor.java	13 Nov 2004 16:38:54 -0000	1.2
--- MX4JGaugeMonitor.java	13 Feb 2005 18:10:21 -0000	1.3
***************
*** 294,297 ****
--- 294,303 ----
        }
  
+       public void clearNotificationStatus() {
+          super.clearNotificationStatus();
+          highNotified = false;
+          lowNotified = false;
+       }
+ 
        public String toString()
        {



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click