org.hawk.http
Class HawkHttpAgent
java.lang.Object
org.hawk.http.HawkHttpAgent
- All Implemented Interfaces:
- java.lang.Runnable
public class HawkHttpAgent
- extends java.lang.Object
- implements java.lang.Runnable
This is the Hawk Thread which is used to hit the app server
simultaneously
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HawkHttpAgent
public HawkHttpAgent(HttpModule httpModule,
IHttpExecutor httpExecutor,
java.lang.Object args)
HawkHttpAgent
public HawkHttpAgent(HttpModule httpModule,
java.lang.Object args)
getHttpExecutor
public IHttpExecutor getHttpExecutor()
setHttpExecutor
public void setHttpExecutor(IHttpExecutor httpExecutor)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
processInstruction
public java.lang.String processInstruction()
throws java.lang.Exception
- This processes the instruction from hawk script.
This hits the targetURL with the the list of parameters in the argument.
- Parameters:
args
- argument recevied from hawk script to execute
- Returns:
- returns true on success
- Throws:
java.lang.Exception