ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Services__Monitor.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Services__Monitor.java (file contents):
Revision 1.7 by tdb, Tue May 21 16:47:16 2002 UTC vs.
Revision 1.11 by tdb, Thu Jan 15 14:10:13 2004 UTC

# Line 29 | Line 29 | import java.util.Iterator;
29   import java.text.NumberFormat;
30   import uk.org.iscream.cms.server.client.*;
31   import uk.org.iscream.cms.server.core.*;
32 < import uk.org.iscream.cms.server.util.*;
32 > import uk.org.iscream.cms.util.*;
33   import uk.org.iscream.cms.server.componentmanager.*;
34  
35   /**
# Line 66 | Line 66 | public class Services__Monitor extends MonitorSkeleton
66       */
67      public void analysePacket(XMLPacket packet) {
68          String source = packet.getParam("packet.attributes.machine_name");
69 +        if(!checkBooleanConfig("Host." + source, "Monitor." + _name + ".enable")) {
70 +            return;
71 +        }
72          if (!_hosts.containsKey(source)) {
73              _hosts.put(source, new HashMap());
74          }
# Line 145 | Line 148 | public class Services__Monitor extends MonitorSkeleton
148       * Overrides the {@link java.lang.Object#toString() Object.toString()}
149       * method to provide clean logging (every class should have this).
150       *
151 <     * This uses the uk.org.iscream.cms.server.util.NameFormat class
151 >     * This uses the uk.org.iscream.cms.util.NameFormat class
152       * to format the toString()
153       *
154       * @return the name of this class and its CVS revision
# Line 176 | Line 179 | public class Services__Monitor extends MonitorSkeleton
179       * @return a reference to a Queue
180       */
181      protected Queue getQueue() {
182 <        return MonitorManager.getInstance().getHeartbeatQueue();
182 >        return MonitorManager.getInstance().getOtherQueue();
183      }
184  
185   //---ATTRIBUTES---

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines