|
JTR 4.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 |
---|
epoch, logger, paramsAssigner, pool |
Constructor Summary | |
---|---|
AbstractWsRunner()
Default constructor. |
Method Summary | |
---|---|
void |
asynchronousInputOnlyInvoke(Binding binding)
Deprecated. |
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. |
int |
getCurrentRun()
Return the current run assigned to the IRunner |
protected java.lang.Throwable |
getFaultCause(Binding binding)
Deprecated. |
protected java.lang.String |
getFaultMessageAsString(Binding binding)
Deprecated. |
protected boolean |
getMessageBooleanPart(Binding binding,
java.lang.String partName,
WsMsgType msgType)
Deprecated. |
protected byte |
getMessageBytePart(Binding binding,
java.lang.String partName,
WsMsgType msgType)
Deprecated. |
protected char |
getMessageCharPart(Binding binding,
java.lang.String partName,
WsMsgType msgType)
Deprecated. |
protected double |
getMessageDoublePart(Binding binding,
java.lang.String partName,
WsMsgType msgType)
Deprecated. |
protected float |
getMessageFloatPart(Binding binding,
java.lang.String partName,
WsMsgType msgType)
Deprecated. |
protected int |
getMessageIntPart(Binding binding,
java.lang.String partName,
WsMsgType msgType)
Deprecated. |
protected long |
getMessageLongPart(Binding binding,
java.lang.String partName,
WsMsgType msgType)
Deprecated. |
protected java.lang.Object |
getMessageObjectPart(Binding binding,
java.lang.String partName,
WsMsgType msgType)
Deprecated. |
java.lang.String[] |
getMessageParts(Binding binding,
WsMsgType msgType)
Deprecated. |
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 |
run()
This method wraps the test() method implemented by
application developed runners.It manages the execution of the test() method according to
the sleep time interval associated with the wrapped IRunner
instance, according to the declared number of required runs and so on.Furthermore there is a fundamental exception accounting feature which enables JTR to collect information about each single IRunner
run and the handling of boring/complex tasks such as the reinitialization
of each runner parameters according to the associated
IAssignmentPolicy . |
void |
setBinding(Binding binding)
This method sets the configured webservice binding. |
protected void |
setMessageBooleanPart(Binding binding,
java.lang.String partName,
boolean part,
WsMsgType msgType)
Deprecated. |
protected void |
setMessageBytePart(Binding binding,
java.lang.String partName,
byte part,
WsMsgType msgType)
Deprecated. |
protected void |
setMessageCharPart(Binding binding,
java.lang.String partName,
char part,
WsMsgType msgType)
Deprecated. |
protected void |
setMessageDoublePart(Binding binding,
java.lang.String partName,
double part,
WsMsgType msgType)
Deprecated. |
protected void |
setMessageFloatPart(Binding binding,
java.lang.String partName,
float part,
WsMsgType msgType)
Deprecated. |
protected void |
setMessageIntPart(Binding binding,
java.lang.String partName,
int part,
WsMsgType msgType)
Deprecated. |
protected void |
setMessageLongPart(Binding binding,
java.lang.String partName,
long part,
WsMsgType msgType)
Deprecated. |
protected void |
setMessageObjectPart(Binding binding,
java.lang.String partName,
java.lang.Object part,
WsMsgType msgType)
Deprecated. |
void |
setWsConfig(WebServiceConfig wsConfig)
Set the webservice configuration associated with the runner according to what specified by the jtr.xml
configuration file. |
protected boolean |
synchronousInvoke(Binding binding)
Deprecated. |
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 |
---|
cleanupResources, getEpoch, getPool, setEpoch |
Methods inherited from interface jtr.runners.IRunnerParameterized |
---|
setPool |
Methods inherited from interface jtr.runners.IRunnerClean |
---|
getDefaultName, getEnterprise, getInstanceCount, getName, getOutcomeFactory, getParameters, getParamsAssigner, getRuns, getSleepTime, getTestOutcomeTable, setEnterprise, setInstanceCount, setName, setOutcomeFactory, setParameters, setParamsAssigner, setRuns, setSleepTime, setTestCompletionListener, setTestOutcomeTable |
Constructor Detail |
---|
public AbstractWsRunner()
Method Detail |
---|
public WebServiceConfig getWsConfig()
IRunnerWs
jtr.xml
configuration file.
getWsConfig
in interface IRunnerWs
IRunnerWs.getWsConfig()
public void setWsConfig(WebServiceConfig wsConfig)
IRunnerWs
jtr.xml
configuration file.
setWsConfig
in interface IRunnerWs
IRunnerWs.setWsConfig(jtr.config.ws.WebServiceConfig)
@Deprecated protected void setMessageObjectPart(Binding binding, java.lang.String partName, java.lang.Object part, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.setMessageObjectPart(Binding, String, Object, WsMsgType)
@Deprecated protected void setMessageIntPart(Binding binding, java.lang.String partName, int part, WsMsgType msgType)
IWsHelper.setMessageIntPart(Binding, String, int, WsMsgType)
@Deprecated protected void setMessageBooleanPart(Binding binding, java.lang.String partName, boolean part, WsMsgType msgType)
IWsHelper.setMessageBooleanPart(Binding, String, boolean, WsMsgType)
@Deprecated protected void setMessageBytePart(Binding binding, java.lang.String partName, byte part, WsMsgType msgType)
IWsHelper.setMessageBytePart(Binding, String, byte, WsMsgType)
@Deprecated protected void setMessageCharPart(Binding binding, java.lang.String partName, char part, WsMsgType msgType)
IWsHelper.setMessageCharPart(Binding, String, char, WsMsgType)
@Deprecated protected void setMessageDoublePart(Binding binding, java.lang.String partName, double part, WsMsgType msgType)
IWsHelper.setMessageDoublePart(Binding, String, double, WsMsgType)
@Deprecated protected void setMessageFloatPart(Binding binding, java.lang.String partName, float part, WsMsgType msgType)
IWsHelper.setMessageFloatPart(Binding, String, float, WsMsgType)
@Deprecated protected void setMessageLongPart(Binding binding, java.lang.String partName, long part, WsMsgType msgType)
IWsHelper.setMessageLongPart(Binding, String, long, WsMsgType)
@Deprecated protected java.lang.Object getMessageObjectPart(Binding binding, java.lang.String partName, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.getMessageObjectPart(Binding, String, WsMsgType)
@Deprecated protected int getMessageIntPart(Binding binding, java.lang.String partName, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.getMessageIntPart(Binding, String, WsMsgType)
@Deprecated protected boolean getMessageBooleanPart(Binding binding, java.lang.String partName, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.getMessageBooleanPart(Binding, String, WsMsgType)
@Deprecated protected byte getMessageBytePart(Binding binding, java.lang.String partName, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.getMessageBytePart(Binding, String, WsMsgType)
@Deprecated protected char getMessageCharPart(Binding binding, java.lang.String partName, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.getMessageCharPart(Binding, String, WsMsgType)
@Deprecated protected double getMessageDoublePart(Binding binding, java.lang.String partName, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.getMessageDoublePart(Binding, String, WsMsgType)
@Deprecated protected float getMessageFloatPart(Binding binding, java.lang.String partName, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.getMessageFloatPart(Binding, String, WsMsgType)
@Deprecated protected long getMessageLongPart(Binding binding, java.lang.String partName, WsMsgType msgType) throws WsProviderException
WsProviderException
IWsHelper.getMessageLongPart(Binding, String, WsMsgType)
@Deprecated protected java.lang.String getFaultMessageAsString(Binding binding)
IWsHelper.getFaultMessageAsString(Binding)
@Deprecated protected java.lang.Throwable getFaultCause(Binding binding)
IWsHelper.getFaultCause(Binding)
@Deprecated protected boolean synchronousInvoke(Binding binding) throws java.lang.Throwable
binding
- The webservice binding in use
java.lang.Throwable
IWsHelper.synchronousInvoke(Binding)
@Deprecated public void asynchronousInputOnlyInvoke(Binding binding) throws java.lang.Throwable
binding
- The webservice binding in use
java.lang.Throwable
public void setBinding(Binding binding)
setBinding
in interface IRunnerWs
binding
- public Binding getBinding()
getBinding
in interface IRunnerWs
@Deprecated public java.lang.String[] getMessageParts(Binding binding, WsMsgType msgType)
public final void run()
test()
method implemented by
application developed runners.test()
method according to
the sleep time interval associated with the wrapped IRunner
instance, according to the declared number of required runs and so on.IRunner
run and the handling of boring/complex tasks such as the reinitialization
of each runner parameters according to the associated
IAssignmentPolicy
.
run
in interface java.lang.Runnable
run
in interface IRunnerParameterized
run
in interface IRunnerPooled
Runnable.run()
public java.lang.Object invoke(Binding binding, java.lang.Object input) throws WsProviderException
IRunnerWs
invoke
in interface IRunnerWs
binding
- 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 IRunnerWs
binding
- 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 IRunnerWs
binding
- 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 IRunnerWs
binding
- The actual binding describing the web-service to invokeinput
- The message
WsProviderException
public int getCurrentRun()
IRunner
getCurrentRun
in interface IRunner
public 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 |