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

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/DataPanel.java (file contents):
Revision 1.12 by ajm, Sun Feb 25 21:23:38 2001 UTC vs.
Revision 1.13 by ajm, Mon Feb 26 00:25:00 2001 UTC

# Line 63 | Line 63 | public class DataPanel extends JPanel implements Runna
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)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines