org.hawk.module.lib
Class HttpModule

java.lang.Object
  extended by org.hawk.module.lib.HttpModule
All Implemented Interfaces:
IModule

public class HttpModule
extends java.lang.Object
implements IModule

This is a hawk library module . This hits the targetURL with the parameters. This can upload files too.

See Also:
SystemModule

Constructor Summary
HttpModule()
           
 
Method Summary
 boolean execute(java.lang.Object... args)
           
 boolean reset()
          This resets one cycle of execution.
 boolean resetThreads(java.lang.Object... args)
          This resets all the hawk threads.
 boolean startUp()
          The target application's main module needs to implement it for its initialization.
 boolean waitforThreadsToFinish(java.lang.Object... args)
          This waits for all the hawk threads to finish their tasks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpModule

public HttpModule()
Method Detail

startUp

public boolean startUp()
Description copied from interface: IModule
The target application's main module needs to implement it for its initialization.

Specified by:
startUp in interface IModule
Returns:

reset

public boolean reset()
Description copied from interface: IModule
This resets one cycle of execution. This is useful when hawk is run in property mode.

Specified by:
reset in interface IModule
Returns:

execute

public boolean execute(java.lang.Object... args)
                throws java.lang.Exception
Throws:
java.lang.Exception

waitforThreadsToFinish

public boolean waitforThreadsToFinish(java.lang.Object... args)
                               throws java.lang.Exception
This waits for all the hawk threads to finish their tasks.

Parameters:
allThreads - list of all threads which are started.
Returns:
true on success
Throws:
java.lang.Exception

resetThreads

public boolean resetThreads(java.lang.Object... args)
                     throws java.lang.Exception
This resets all the hawk threads.

Parameters:
allThreads - list of all threads which are started.
Returns:
true on success
Throws:
java.lang.Exception