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.17 by ajm, Thu Mar 1 02:00:02 2001 UTC vs.
Revision 1.18 by ajm, Mon Mar 5 16:12:43 2001 UTC

# Line 59 | Line 59 | public class DataPanel extends JPanel implements Runna
59              while(_running) {
60                  
61                  String xml = (String) _dataQueue.get(_myQueue);
62 +                // if we want to debug the packets
63 +                if(Configuration.getInstance().getProperty("packetDump").equals("1")) {
64 +                    System.out.println("[PACKET DUMP]\n" + xml);
65 +                }
66 +                
67                  Conient.setQueueStatus(_dataQueue.queueSize(_myQueue), _dataQueue.elementCount());
68                  if (xml == null) {
69                      // shouldn't really happen...but not sure
# Line 77 | Line 82 | public class DataPanel extends JPanel implements Runna
82                      // Use XMLPacketMaker to make an XMLPacket object.
83                      XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml);
84                      XMLPacket packet = xmlPacketMaker.createXMLPacket();
80
81                    // if we want to debug the packets
82                    if(Configuration.getInstance().getProperty("packetDump").equals("1")) {
83                        System.out.println("[PACKET DUMP]\n" + packet.printAll());
84                    }
85                      
86                      String packetType = packet.getParam("packet.attributes.type");
87                      if (packetType.equals("heartbeat") || packetType.equals("data")) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines