|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
testEnvironment.ClientSimulator
final class ClientSimulator
Simulates a Client
s behavior using its
InputStream
and OutputStream
according to the
following logic: "Send K
bytes of data with a delay of
L
ms between sending, M
times."
K
, L
and M
are taken from the
property file (TestEnvironmentProperties.txt
).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
protected |
ClientSimulator()
Generates a new ClientSimulator that can be used to
simulates a Client s behavior using its
InputStream and OutputStream according to the
following logic: "Send K bytes of data with a delay of
L ms between sending, M times." |
Method Summary | |
---|---|
protected static int |
getVariable(java.lang.String variableKey)
Returns the value of one of the variables X, Y, Z, K, L, or
M from property file (as specified by the bypassed value). |
void |
run()
Simulates a Client 's behavior. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ClientSimulator()
ClientSimulator
that can be used to
simulates a Client
s behavior using its
InputStream
and OutputStream
according to the
following logic: "Send K
bytes of data with a delay of
L
ms between sending, M
times."
K
, L
and M
are taken from the
property file (TestEnvironmentProperties.txt
).
Method Detail |
---|
public void run()
Client
's behavior.
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected static int getVariable(java.lang.String variableKey)
X, Y, Z, K, L,
or
M
from property file (as specified by the bypassed value).
variableKey
- Name (=key) of the variable (=property) to be
returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |