CVS update: JGroups/tests/perf/org/jgroups/tests/perf Test.java
"Bela Ban" <[email protected]> Fri, 17 Sep 2010 12:03:34 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/09/17 12:03:34
Modified: tests/perf/org/jgroups/tests/perf Test.java
Log:
use of Util.createConcurrentMap() instead of new ConcurrentHashMap()
Revision Changes Path
1.73 +2 -2 JGroups/tests/perf/org/jgroups/tests/perf/Test.java
Index: Test.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/tests/perf/org/jgroups/tests/perf/Test.java,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- Test.java 14 Sep 2010 07:52:09 -0000 1.72
+++ Test.java 17 Sep 2010 12:03:34 -0000 1.73
@@ -28,7 +28,7 @@
Object local_addr=null;
/** Keys=member addresses, value=MemberInfo */
- final Map<Object,MemberInfo> senders=new ConcurrentHashMap<Object,MemberInfo>(10);
+ final Map<Object,MemberInfo> senders=Util.createConcurrentMap();
/** Keeps track of members. ArrayList<SocketAddress> */
final List members=new ArrayList();
@@ -61,7 +61,7 @@
boolean final_results_received=false;
/** Map<Object, MemberInfo>. A hashmap of senders, each value is the 'senders' hashmap */
- final Map<Object,MemberInfo> results=new ConcurrentHashMap<Object,MemberInfo>(12);
+ final Map<Object,MemberInfo> results=Util.createConcurrentMap();
private ResultsPublisher publisher=new ResultsPublisher();
------------------------------------------------------------------------------
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