|
JTR 5.0 API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjtr.runners.AbstractRunnerAncestor
jtr.runners.AbstractWsRunner
public abstract class AbstractWsRunner
This abstract class is the base class every application-level IRunner implementation
should extend when the ability to access webservices is required.
This class provides facilities for invoking webservices according to what has been specified in the
jtr.xml configuration file.
| Field Summary |
|---|
| Fields inherited from class jtr.runners.AbstractRunnerAncestor |
|---|
logger |
| Constructor Summary | |
|---|---|
AbstractWsRunner()
Default constructor. |
|
| Method Summary | |
|---|---|
IRunnerClean |
clean()
This method is invoked everytime an IRunner passes from
its RUNNING state to the
REQUIRES_NEW_PARAMETERS state.The concrete IRunner implementation is responsible for its
own clean-up. |
Binding |
getBinding()
This method returns the set of configured webservice bindings. |
WebServiceConfig |
getWsConfig()
Retrieve the webservice configuration associated with the runner according to what specified by the jtr.xml
configuration file. |
java.lang.Object |
invoke(Binding binding,
java.lang.Object input)
Performs a synchronous invocation. |
IWsResponse |
invokeAsync(Binding binding,
java.lang.Object input)
Performs an asynchronous invocation. |
java.util.concurrent.Future<?> |
invokeAsync(Binding binding,
java.lang.Object input,
IWsResponseListener rl)
Performs an asynchronous invocation. |
void |
invokeOneWay(Binding binding,
java.lang.Object input)
Performs a one-way webservice invocation. |
void |
setBinding(Binding binding)
This method sets the configured webservice binding. |
void |
setWsConfig(WebServiceConfig wsConfig)
Set the webservice configuration associated with the runner according to what specified by the jtr.xml
configuration file. |
protected void |
specializedBeforeRunTest()
This method allows more specialized subclasses to perform preparatory activities right before the actual test is launched. Note: implementations of this method must always be final. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jtr.runners.IRunner |
|---|
getFailures, getSuccesses, receiveFailureNotification, test |
| Methods inherited from interface jtr.runners.IRunnerPooled |
|---|
afterTest, beforeTest, cleanupResources, getPool, run |
| Methods inherited from interface jtr.runners.IRunnerParameterized |
|---|
setPool |
| Methods inherited from interface jtr.runners.IRunnerClean |
|---|
getCurrentRun, getDefaultName, getEnterprise, getEpoch, getFqn, getInstanceCount, getInstanceID, getName, getOutcomeFactory, getParameters, getParamsAssigner, getRuns, getSleepTime, getStatFunction, getTestOutcomeTable, setCurrentRun, setEnterprise, setEpoch, setFqn, setInstanceCount, setInstanceID, setName, setOutcomeFactory, setParameters, setParamsAssigner, setRuns, setSleepTime, setStatFunction, setTestCompletionListener, setTestOutcomeTable |
| Constructor Detail |
|---|
public AbstractWsRunner()
| Method Detail |
|---|
public WebServiceConfig getWsConfig()
IRunnerWsjtr.xml
configuration file.
getWsConfig in interface IRunnerWsIRunnerWs.getWsConfig()public void setWsConfig(WebServiceConfig wsConfig)
IRunnerWsjtr.xml
configuration file.
setWsConfig in interface IRunnerWsIRunnerWs.setWsConfig(jtr.config.ws.WebServiceConfig)public void setBinding(Binding binding)
setBinding in interface IRunnerWsbinding - public Binding getBinding()
getBinding in interface IRunnerWs
protected final void specializedBeforeRunTest()
throws java.lang.Throwable
AbstractRunnerAncestorfinal.
specializedBeforeRunTest in class AbstractRunnerAncestorjava.lang.Throwable
public java.lang.Object invoke(Binding binding,
java.lang.Object input)
throws WsProviderException
IRunnerWs
invoke in interface IRunnerWsbinding - The actual binding describing the web-services to invokeinput - The message
WsProviderException
public void invokeOneWay(Binding binding,
java.lang.Object input)
throws WsProviderException
IRunnerWs
invokeOneWay in interface IRunnerWsbinding - The actual binding describing the web-services to invokeinput - The message
WsProviderException
public java.util.concurrent.Future<?> invokeAsync(Binding binding,
java.lang.Object input,
IWsResponseListener rl)
throws WsProviderException
IRunnerWs
invokeAsync in interface IRunnerWsbinding - The actual binding describing the web-service to invokeinput - The messagerl - The response listener to be notified when a response becomes available
Future instance representin the pending task
WsProviderException
public IWsResponse invokeAsync(Binding binding,
java.lang.Object input)
throws WsProviderException
IRunnerWs
invokeAsync in interface IRunnerWsbinding - The actual binding describing the web-service to invokeinput - The message
WsProviderExceptionpublic IRunnerClean clean()
IRunner passes from
its RUNNING state to the
REQUIRES_NEW_PARAMETERS state.IRunner implementation is responsible for its
own clean-up.
|
The JTR Project is licensed under GPL version 2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||