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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/plugins/EnforceEssentialData__Plugin.java (file contents):
Revision 1.7 by tdb, Fri Jan 19 00:36:45 2001 UTC vs.
Revision 1.8 by tdb, Mon Feb 12 02:23:14 2001 UTC

# Line 35 | Line 35 | public class EnforceEssentialData__Plugin implements P
35      // apply the filter and return true if successful.
36      public boolean runFilter(XMLPacket packet){
37          
38 <        // need a special case for heartbeats
38 >        // return true if a heartbeat packet seems ok
39          if (packet.getParam("packet.attributes.type").equals("heartbeat")
40                  && packet.getParam("packet.attributes.date") != null
41                  && packet.getParam("packet.attributes.ip") != null
# Line 43 | Line 43 | public class EnforceEssentialData__Plugin implements P
43              return true;
44          }
45          
46 <        // return false if any of the essential data is not present.
46 >        // return true if a queueStat packet seems ok
47 >        if (packet.getParam("packet.attributes.type").equals("queueStat")
48 >                && packet.getParam("packet.attributes.date") != null
49 >                && packet.getParam("packet.attributes.name") != null){
50 >            return true;
51 >        }
52 >        
53 >        // return false if any of the essential data is not present
54 >        // in a "data" packet
55          if (packet.getParam("packet.attributes.machine_name") == null
56                  || packet.getParam("packet.attributes.ip") == null
57                  || packet.getParam("packet.attributes.seq_no") == null

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines