CVS update: JGroups/tests/perf/org/jgroups/tests/perf/transports JGroupsTransport.java
"Bela Ban" <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/09/10 10:13:22
Modified: tests/perf/org/jgroups/tests/perf/transports
JGroupsTransport.java
Log:
added -name option
Revision Changes Path
1.22 +4 -1 JGroups/tests/perf/org/jgroups/tests/perf/transports/JGroupsTransport.java
Index: JGroupsTransport.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/tests/perf/org/jgroups/tests/perf/transports/JGroupsTransport.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- JGroupsTransport.java 9 Apr 2009 09:11:39 -0000 1.21
+++ JGroupsTransport.java 10 Sep 2010 10:13:22 -0000 1.22
@@ -13,7 +13,7 @@
/**
* @author Bela Ban Jan 22
* @author 2004
- * @version $Id: JGroupsTransport.java,v 1.21 2009/04/09 09:11:39 belaban Exp $
+ * @version $Id: JGroupsTransport.java,v 1.22 2010/09/10 10:13:22 belaban Exp $
*/
public class JGroupsTransport extends org.jgroups.ReceiverAdapter implements Transport {
Properties config=null;
@@ -44,6 +44,9 @@
jmx=Boolean.parseBoolean(this.config.getProperty("jmx"));
channel=new JChannel(props);
channel.setReceiver(this);
+ String name=config.getProperty("name");
+ if(name != null)
+ channel.setName(name);
}
public void create(Configuration config) throws Exception {
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev