jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1522070 - /jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java
Date Wed, 11 Sep 2013 22:11:50 GMT
Author: sebb
Date: Wed Sep 11 22:11:49 2013
New Revision: 1522070

URL: http://svn.apache.org/r1522070
Log:
Log the remote client host address (if possible)

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java?rev=1522070&r1=1522069&r2=1522070&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java Wed Sep 11
22:11:49 2013
@@ -25,6 +25,7 @@ import java.rmi.NotBoundException;
 import java.rmi.RemoteException;
 import java.rmi.registry.LocateRegistry;
 import java.rmi.registry.Registry;
+import java.rmi.server.ServerNotActiveException;
 import java.util.Iterator;
 import java.util.Properties;
 
@@ -95,7 +96,7 @@ public final class RemoteJMeterEngineImp
         } catch (UnknownHostException e1) {
             throw new RemoteException("Cannot start. Unable to get local host IP address.",
e1);
         }
-        log.info("IP address="+localHost.getHostAddress());
+        log.info("Local IP address="+localHost.getHostAddress());
         String hostName = localHost.getHostName();
         // BUG 52469 : Allow loopback address for SSH Tunneling of RMI traffic
         if (localHost.isLoopbackAddress() && host == null){
@@ -139,6 +140,11 @@ public final class RemoteJMeterEngineImp
     @Override
     public void rconfigure(HashTree testTree, String host, File jmxBase, String scriptName)
throws RemoteException {
         log.info("Creating JMeter engine on host "+host+" base '"+jmxBase+"'");
+        try {
+            log.info("Remote client host: " + getClientHost());
+        } catch (ServerNotActiveException e) {
+            // ignored
+        }
         synchronized(LOCK) { // close window where another remote client might jump in
             if (backingEngine != null && backingEngine.isActive()) {
                 log.warn("Engine is busy - cannot create JMeter engine");



Mime
View raw message