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/Process__Monitor.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Process__Monitor.java (file contents):
Revision 1.5 by tdb, Sat May 18 18:16:00 2002 UTC vs.
Revision 1.8 by tdb, Thu Jan 15 13:41:48 2004 UTC

# Line 1 | Line 1
1   /*
2   * i-scream central monitoring system
3 + * http://www.i-scream.org.uk
4   * Copyright (C) 2000-2002 i-scream
5   *
6   * This program is free software; you can redistribute it and/or
# Line 24 | Line 25 | package uk.org.iscream.cms.server.client.monitors;
25   import java.util.HashMap;
26   import uk.org.iscream.cms.server.client.*;
27   import uk.org.iscream.cms.server.core.*;
28 < import uk.org.iscream.cms.server.util.*;
28 > import uk.org.iscream.cms.util.*;
29   import uk.org.iscream.cms.server.componentmanager.*;
30  
31   /**
# Line 60 | Line 61 | public class Process__Monitor extends MonitorSkeleton
61       * @param packet the XMLPacket to analyse
62       */
63      public void analysePacket(XMLPacket packet) {
63
64          String source = packet.getParam("packet.attributes.machine_name");
65 +        if(!checkBooleanConfig(source, "Monitor." + _name + ".enable")) {
66 +            return;
67 +        }
68          if (!_hosts.containsKey(source)) {
69              HashMap attributeRegisters = new HashMap();
70              initAttributeRegsiters(source, attributeRegisters);
# Line 84 | Line 87 | public class Process__Monitor extends MonitorSkeleton
87       * Overrides the {@link java.lang.Object#toString() Object.toString()}
88       * method to provide clean logging (every class should have this).
89       *
90 <     * This uses the uk.org.iscream.cms.server.util.NameFormat class
90 >     * This uses the uk.org.iscream.cms.util.NameFormat class
91       * to format the toString()
92       *
93       * @return the name of this class and its CVS revision

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines