com.eviware.soapui.impl.wsdl.panels.support
Class MockLoadTestRunner

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.panels.support.MockLoadTestRunner
All Implemented Interfaces:
LoadTestRunner

public class MockLoadTestRunner
extends java.lang.Object
implements LoadTestRunner


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.LoadTestRunner
LoadTestRunner.Status
 
Constructor Summary
MockLoadTestRunner(WsdlLoadTest modelItem, org.apache.log4j.Logger logger)
           
 
Method Summary
 void cancel(java.lang.String reason)
          Cancels the loadtest with the specified reason.
 void fail(java.lang.String reason)
          Fails the loadtest with the specified reason.
 LoadTest getLoadTest()
           
 float getProgress()
          Returns the progress of the loadtest as a value between 0 and 1.
 java.lang.String getReason()
          Gets the reason why a loadtest was cancelled or failed
 int getRunningThreadCount()
          Gets the number of threads currently running
 LoadTestRunner.Status getStatus()
          Gets the current status of this runner
 long getTimeTaken()
          Gets the time taken for this loadtest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockLoadTestRunner

public MockLoadTestRunner(WsdlLoadTest modelItem,
                          org.apache.log4j.Logger logger)
Method Detail

cancel

public void cancel(java.lang.String reason)
Description copied from interface: LoadTestRunner
Cancels the loadtest with the specified reason. This should be used for "normal" cancellations, ie from a ui or some expected signal.

Specified by:
cancel in interface LoadTestRunner

fail

public void fail(java.lang.String reason)
Description copied from interface: LoadTestRunner
Fails the loadtest with the specified reason. This should be used for error conditions

Specified by:
fail in interface LoadTestRunner

getLoadTest

public LoadTest getLoadTest()
Specified by:
getLoadTest in interface LoadTestRunner

getProgress

public float getProgress()
Description copied from interface: LoadTestRunner
Returns the progress of the loadtest as a value between 0 and 1. Progress is measured depending on the LoadTest limit configuration

Specified by:
getProgress in interface LoadTestRunner

getReason

public java.lang.String getReason()
Description copied from interface: LoadTestRunner
Gets the reason why a loadtest was cancelled or failed

Specified by:
getReason in interface LoadTestRunner

getRunningThreadCount

public int getRunningThreadCount()
Description copied from interface: LoadTestRunner
Gets the number of threads currently running

Specified by:
getRunningThreadCount in interface LoadTestRunner

getStatus

public LoadTestRunner.Status getStatus()
Description copied from interface: LoadTestRunner
Gets the current status of this runner

Specified by:
getStatus in interface LoadTestRunner

getTimeTaken

public long getTimeTaken()
Description copied from interface: LoadTestRunner
Gets the time taken for this loadtest

Specified by:
getTimeTaken in interface LoadTestRunner


Copyright © 2005-2008 eviware.com. All Rights Reserved.