55 |
|
// apply the filter and return true if successful. |
56 |
|
public boolean runFilter(XMLPacket packet){ |
57 |
|
|
58 |
– |
// return true if a heartbeat packet seems ok |
59 |
– |
if (packet.getParam("packet.attributes.type").equals("heartbeat") |
60 |
– |
&& packet.getParam("packet.attributes.date") != null |
61 |
– |
&& packet.getParam("packet.attributes.ip") != null |
62 |
– |
&& packet.getParam("packet.attributes.machine_name") != null){ |
63 |
– |
return true; |
64 |
– |
} |
65 |
– |
|
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 |