CVS update: JGroups/tests/junit/org/jgroups/tests MessageBundlingTest.java
"Bela Ban" <[email protected]> Thu, 16 Sep 2010 15:27:18 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/09/16 15:27:18
Modified: tests/junit/org/jgroups/tests MessageBundlingTest.java
Log:
ns
Revision Changes Path
1.20 +5 -5 JGroups/tests/junit/org/jgroups/tests/MessageBundlingTest.java
Index: MessageBundlingTest.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/tests/junit/org/jgroups/tests/MessageBundlingTest.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- MessageBundlingTest.java 22 Feb 2010 13:38:12 -0000 1.19
+++ MessageBundlingTest.java 16 Sep 2010 15:27:18 -0000 1.20
@@ -16,7 +16,7 @@
/**
* Measure the latency between messages with message bundling enabled at the transport level
* @author Bela Ban
- * @version $Id: MessageBundlingTest.java,v 1.19 2010/02/22 13:38:12 belaban Exp $
+ * @version $Id: MessageBundlingTest.java,v 1.20 2010/09/16 15:27:18 belaban Exp $
*/
@Test(groups=Global.STACK_DEPENDENT,sequential=true)
public class MessageBundlingTest extends ChannelTestBase {
@@ -160,16 +160,16 @@
private static void setLoopback(JChannel ch, boolean b) {
ProtocolStack stack=ch.getProtocolStack();
- Vector<Protocol> prots=stack.getProtocols();
- TP transport=(TP)prots.lastElement();
+ List<Protocol> prots=stack.getProtocols();
+ TP transport=(TP)prots.get(prots.size() -1);
transport.setLoopback(b);
}
private static void setBundling(JChannel ch, boolean enabled, int max_bytes, long timeout) {
ProtocolStack stack=ch.getProtocolStack();
- Vector<Protocol> prots=stack.getProtocols();
- TP transport=(TP)prots.lastElement();
+ List<Protocol> prots=stack.getProtocols();
+ TP transport=(TP)prots.get(prots.size() -1);
transport.setEnableBundling(enabled);
if(enabled) {
transport.setMaxBundleSize(max_bytes);
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev