CVS update: JGroups/src/org/jgroups/debug Simulator.java
"Bela Ban" <[email protected]> Wed, 6 Oct 2010 09:47:19 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/10/06 09:47:19
Modified: src/org/jgroups/debug Simulator.java
Log:
first impl of programmatic API (https://jira.jboss.org/browse/JGRP-1245)
Revision Changes Path
1.21 +3 -7 JGroups/src/org/jgroups/debug/Simulator.java
Index: Simulator.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/debug/Simulator.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- Simulator.java 19 Jul 2010 06:44:44 -0000 1.20
+++ Simulator.java 6 Oct 2010 09:47:19 -0000 1.21
@@ -17,7 +17,7 @@
/**
* Tests one or more protocols independently. Look at org.jgroups.tests.FCTest for an example of how to use it.
* @author Bela Ban
- * @version $Id: Simulator.java,v 1.20 2010/07/19 06:44:44 belaban Exp $
+ * @version $Id: Simulator.java,v 1.21 2010/10/06 09:47:19 belaban Exp $
*/
public class Simulator {
private Protocol[] protStack=null;
@@ -59,13 +59,9 @@
top=protStack[0];
bottom=this.protStack[this.protStack.length-1];
- try {
- prot_stack=new ProtocolStack();
- } catch (ChannelException e) {
- e.printStackTrace();
- }
+ prot_stack=new ProtocolStack();
- if(protStack.length > 1) {
+ if(protStack.length > 1) {
for(int i=0; i < protStack.length; i++) {
Protocol p1=protStack[i];
p1.setProtocolStack(prot_stack);
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb