|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScript
A request object which can be executed by
IScriptEngine.execute(request)
method.
An object of this class is created using createXXX
method of IScriptEngine
. Once the object is created, it should be populated as
per the requirements of the protocol and then executed using IScriptEngine.
Method Summary | |
---|---|
java.lang.String |
getReasonForFailure()
If the task has failed after execution, a reason for its failure is set by the application. |
boolean |
isIgnored()
This method returns if the task is ignored during execution. |
boolean |
isTaskSuccessful()
Afer the request was executed, this method returns the status of the execution. |
boolean |
isTaskTimedOut()
Afer the request was executed, this method returns if the task had timed out. |
void |
setIgnored(boolean ignored)
This method should be called to ignore a task during execution. |
void |
setReasonForFailure(java.lang.String reason)
If the task has failed after execution, a standard reason for its failure is set by the application. |
void |
setTaskSuccessful(boolean success)
Afer the request was executed, it is marked as successful or failed using standard rules. |
void |
setTaskTimedout(boolean timeout)
Afer the request was executed, it is marked as timed out, if there is no response from the server within assigned time set for the task. |
void |
setThinkTime(int iThinkTime)
Delay in seconds before the task is actually executed. |
void |
setTimeout(int secs)
Few tasks may take long time to execute, sometimes forever, due to various reason like server is not responding, network failure etc. |
Method Detail |
---|
java.lang.String getReasonForFailure()
null
if the task
has not failed.boolean isIgnored()
true
if this task should not be executed;
false
otherwise.boolean isTaskSuccessful()
true
if the task was successful;
false
otherwise.boolean isTaskTimedOut()
true
if the task had timed out; false
otherwise.void setIgnored(boolean ignored)
ignored
- true
if this task should be executed;
false
otherwise.void setReasonForFailure(java.lang.String reason)
reason
- user-defined reason for failure of the task.void setTaskSuccessful(boolean success)
success
- true
to mark the task as successful;
false
otherwise.void setTaskTimedout(boolean timeout)
timeout
- true
to mark the task as timed out;
false
otherwise.void setThinkTime(int iThinkTime)
iThinkTime
- no of seconds the engine waits before the task is actually
executed.void setTimeout(int secs)
secs
- no of seconds for the task to complete its execution.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |