org.hawk.http
Class HawkHttpAgent

java.lang.Object
  extended by 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


Constructor Summary
HawkHttpAgent(HttpModule httpModule, IHttpExecutor httpExecutor, java.lang.Object args)
           
HawkHttpAgent(HttpModule httpModule, java.lang.Object args)
           
 
Method Summary
 IHttpExecutor getHttpExecutor()
           
 java.lang.String processInstruction()
          This processes the instruction from hawk script.
 void run()
           
 void setHttpExecutor(IHttpExecutor httpExecutor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HawkHttpAgent

public HawkHttpAgent(HttpModule httpModule,
                     IHttpExecutor httpExecutor,
                     java.lang.Object args)

HawkHttpAgent

public HawkHttpAgent(HttpModule httpModule,
                     java.lang.Object args)
Method Detail

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