|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hawk.module.config.HawkConfig
public class HawkConfig
This class represents the configuration defined in hawk property file.
HawkConfigManager
Field Summary | |
---|---|
long |
duration
Total duration of hawk. |
int |
iteration
This determines how many times the module is to be executed. |
long |
iterationThinkTime
This indicates how much time hawk to sleep between iteration. |
int |
runnable
A switch for the user to control running of a module. |
int |
sequence
sequence of the module that defines its execution order. |
long |
thinkTime
Hawk will sleep this much time after one complete cycle. |
Constructor Summary | |
---|---|
HawkConfig()
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
java.lang.String |
fetchConfig(java.lang.String annotation,
java.lang.Class configClazz,
java.lang.Object defaultValue)
|
long |
getDuration()
|
int |
getIteration()
|
long |
getIterationThinkTime()
|
java.lang.String |
getModuleName()
|
int |
getRunnable()
|
int |
getSequence()
|
long |
getThinkTime()
|
void |
setDuration(long duration)
|
void |
setIteration(int iteration)
|
void |
setIterationThinkTime(long iterationThinkTime)
|
void |
setModuleName(java.lang.String moduleName)
|
void |
setRunnable(int runnable)
|
void |
setSequence(int sequence)
|
void |
setThinkTime(long thinkTime)
|
boolean |
shouldRun()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int sequence
public int iteration
public long iterationThinkTime
public long thinkTime
public int runnable
public long duration
Constructor Detail |
---|
public HawkConfig()
Method Detail |
---|
public long getDuration()
public void setDuration(long duration)
public java.lang.String getModuleName()
public void setModuleName(java.lang.String moduleName)
public int getRunnable()
public void setRunnable(int runnable)
public boolean shouldRun()
public int getIteration()
public void setIteration(int iteration)
public long getIterationThinkTime()
public void setIterationThinkTime(long iterationThinkTime)
public int getSequence()
public void setSequence(int sequence)
public long getThinkTime()
public void setThinkTime(long thinkTime)
public java.lang.String fetchConfig(java.lang.String annotation, java.lang.Class configClazz, java.lang.Object defaultValue)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |