jakarta-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1066936 - /jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java
Date Thu, 03 Feb 2011 20:06:16 GMT
Author: sebb
Date: Thu Feb  3 20:06:16 2011
New Revision: 1066936

URL: http://svn.apache.org/viewvc?rev=1066936&view=rev
Log:
Change to more suitable Exception

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

Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java?rev=1066936&r1=1066935&r2=1066936&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/RemoteJMeterEngineImpl.java Thu
Feb  3 20:06:16 2011
@@ -124,7 +124,7 @@ public class RemoteJMeterEngineImpl exte
         log.info("Creating JMeter engine on host "+host+" base '"+jmxBase+"'");
         if (backingEngine != null && backingEngine.isActive()) {
             log.warn("Engine is busy - cannot create JMeter engine");
-            throw new RemoteException("Engine is busy - please try later");
+            throw new IllegalStateException("Engine is busy - please try later");
         }
         ownerThread = Thread.currentThread();
         backingEngine = new StandardJMeterEngine(host);
@@ -164,11 +164,11 @@ public class RemoteJMeterEngineImpl exte
         backingEngine.setProperties(p);
     }
 
-    private void checkOwner(String methodName) throws RemoteException {
+    private void checkOwner(String methodName) {
         if (ownerThread != Thread.currentThread()){
             String msg = "The engine is not owned by this thread - cannot call "+methodName;
             log.warn(msg);
-            throw new RemoteException(msg);            
+            throw new IllegalStateException(msg);            
         }
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


Mime
View raw message