|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.dallaway.sloppy.PassThruThread
A pipe for punting data from a sender to a receiver. In this class we implement a delay for simulating slow network connections.
We don't implement latency here -- we just do transmission rate
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
PassThruThread(java.io.InputStream in,
java.io.OutputStream out,
Log log,
int buffer_size,
int bps,
java.lang.String client_id)
Construct a new pipe. |
|
| Method Summary | |
void |
run()
Start passing data from sender to receiver |
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
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 |
public PassThruThread(java.io.InputStream in,
java.io.OutputStream out,
Log log,
int buffer_size,
int bps,
java.lang.String client_id)
in - The input stream to listen onout - The output stream to write tolog - The logging instance to usebuffer_size - The size of the buffer, in bytes, for holding sender's databps - Bytes per secondclient_id - String identiying this client. Probably IP address| Method Detail |
public void run()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||