Permalink
Browse files

Changed ParseMessages to use methods exposed by TP to parse captured …

…message dumps
  • Loading branch information...
1 parent d085b37 commit 94cc199db95e0777eb9a6a7d18b43807948b90ed @belaban committed Apr 5, 2013
Showing with 0 additions and 18 deletions.
  1. +0 −18 tests/other/org/jgroups/tests/ParseMessages.java
@@ -1,6 +1,5 @@
package org.jgroups.tests;
-import org.jgroups.Address;
import org.jgroups.Message;
import org.jgroups.Version;
import org.jgroups.protocols.TP;
@@ -9,8 +8,6 @@
import java.io.*;
import java.util.Arrays;
-import java.util.LinkedList;
-import java.util.List;
/**
* Parses messages out of a captured file and writes them to stdout
@@ -95,21 +92,6 @@ private static void print(Message msg, boolean multicast) {
System.out.println(msg + ", hdrs: " + msg.printHeaders() + ", mcast: " + multicast);
}
- private static List<Message> readMessageList(DataInputStream in) throws Exception {
- List<Message> list=new LinkedList<Message>();
- Address dest=Util.readAddress(in);
- Address src=Util.readAddress(in);
-
- while(in.readBoolean()) {
- Message msg=new Message(false);
- msg.readFrom(in);
- msg.setDest(dest);
- if(msg.getSrc() == null)
- msg.setSrc(src);
- list.add(msg);
- }
- return list;
- }

0 comments on commit 94cc199

Please sign in to comment.