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 |
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 |
|
/** |
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 |
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 |