63 |
|
// Use XMLPacketMaker to make an XMLPacket object. |
64 |
|
XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml); |
65 |
|
XMLPacket packet = xmlPacketMaker.createXMLPacket(); |
66 |
< |
String packetType = packet.getParam("packet.attributes.type"); |
66 |
> |
|
67 |
> |
// if we want to debug the packets |
68 |
> |
if(Configuration.getInstance().getProperty("packetDump") != null) { |
69 |
> |
System.out.println("[DEBUG]\n" + packet.printAll()); |
70 |
> |
} |
71 |
|
|
72 |
+ |
String packetType = packet.getParam("packet.attributes.type"); |
73 |
|
if (packetType.equals("heartbeat") || packetType.equals("data")) { |
74 |
|
String hostName = packet.getParam("packet.attributes.machine_name"); |
75 |
|
if(!hostList.containsKey(hostName)) { |