Author: mircea.markus
Date: 2008-09-10 05:15:15 -0400 (Wed, 10 Sep 2008)
New Revision: 6704
Modified:
benchmarks/benchmark-fwk/trunk/src/org/cachebench/cluster/TcpTransport.java
Log:
fix for local benchmarks
Modified: benchmarks/benchmark-fwk/trunk/src/org/cachebench/cluster/TcpTransport.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/cluster/TcpTransport.java 2008-09-10
09:11:42 UTC (rev 6703)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/cluster/TcpTransport.java 2008-09-10
09:15:15 UTC (rev 6704)
@@ -49,7 +49,14 @@
this.config = clusterConfig;
startPort = config.getPortForThisNode();
String bindAddrStr = config.getAddressForThisNode().getHost();
- bindAddr = InetAddress.getByName(bindAddrStr);
+ if (bindAddrStr == null) //happens for local benchmarks
+ {
+ bindAddr = InetAddress.getLocalHost();
+ }
+ else
+ {
+ bindAddr = InetAddress.getByName(bindAddrStr);
+ }
nodes = clusterConfig.getMemberAddresses();
connectionTable = new ConnectionTable(nodes);
}
Show replies by date