ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/PluginManager/PluginDemo.java
(Generate patch)

Comparing experimental/server/PluginManager/PluginDemo.java (file contents):
Revision 1.1 by pjm2, Fri Dec 1 09:50:35 2000 UTC vs.
Revision 1.3 by pjm2, Fri Dec 1 14:38:47 2000 UTC

# Line 8 | Line 8 | class PluginDemo {
8      // Test the PluginFilterManager with some XMLPackets.
9      public static void main(String[] args){
10          
11 <        PluginFilterManager pfm = PluginFilterManager.init();
11 >        PluginFilterManager pfm = PluginFilterManager.getInstance();
12          
13          // Some XMLPackets to test with...
14          XMLPacket validPacket = new XMLPacket();
# Line 16 | Line 16 | class PluginDemo {
16          XMLPacket nearlyEmptyPacket = new XMLPacket();
17          
18          // Add some stuff to the valid packet (i.e. all essential info)
19 <        validPacket.addParam("machine_name", "raptor");
20 <        validPacket.addParam("ip", "129.12.225.53");
21 <        validPacket.addParam("seq_no", "552");
22 <        validPacket.addParam("date", "934999665636");
19 >        validPacket.addParam("packet.attributes.machine_name", "raptor");
20 >        validPacket.addParam("packet.attributes.ip", "129.12.225.53");
21 >        validPacket.addParam("packet.attributes.seq_no", "552");
22 >        validPacket.addParam("packet.attributes.date", "934999665636");
23          
24          // Add nothing to the empty packet
25          
26          // Add just the machine name to the nearly empty packet.
27 <        nearlyEmptyPacket.addParam("machine_name", "craptor");
27 >        nearlyEmptyPacket.addParam("packet.attributes.machine_name", "craptor");
28          
29          // Run the XMLPackets through the filter pipeline.
30          System.out.println("");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines