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.12 by tdb, Sat May 18 18:16:02 2002 UTC vs.
Revision 1.15 by tdb, Mon Feb 24 20:18:49 2003 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.filter.plugins;
25   import uk.org.iscream.cms.server.filter.PluginFilter;
26   import uk.org.iscream.cms.server.filter.*;
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 54 | Line 55 | public class EnforceEssentialData__Plugin implements P
55      // apply the filter and return true if successful.
56      public boolean runFilter(XMLPacket packet){
57          
57        // return true if a heartbeat packet seems ok
58        if (packet.getParam("packet.attributes.type").equals("heartbeat")
59                && packet.getParam("packet.attributes.date") != null
60                && packet.getParam("packet.attributes.ip") != null
61                && packet.getParam("packet.attributes.machine_name") != null){
62            return true;
63        }
64        
58          // return true if a queueStat packet seems ok
59          if (packet.getParam("packet.attributes.type").equals("queueStat")
60                  && packet.getParam("packet.attributes.date") != null
# Line 88 | Line 81 | public class EnforceEssentialData__Plugin implements P
81       * Overrides the {@link java.lang.Object#toString() Object.toString()}
82       * method to provide clean logging (every class should have this).
83       *
84 <     * This uses the uk.org.iscream.cms.server.util.NameFormat class
84 >     * This uses the uk.org.iscream.cms.util.NameFormat class
85       * to format the toString()
86       *
87       * @return the name of this class and its CVS revision

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines