Now lets look at what happens in
RequestDataMover
.
Once the constructor of
RequestDataMover
is called, the references to the current requests
input stream, the instance of PipedOutputStream
pout
and an instance of
QoSParameters
are
assigned to global variables in
RequestDataMover
. Then
start()
is called which has the effect
of calling
run()
which is examined further on the next page.
RequestDataMover.java
1. class RequestDataMover extends Thread {
2. InputStream in = null;
3. OutputStream out = null;
4. QoSParameters myQoSParameters;
5. RequestDataMover(InputStream in, OutputStream out,QoSParameters qoSParameters)
6. {
7. this.myQoSParameters = qoSParameters;
8. this.in = in;
9. this.out = out;
10. setName("RequestDataMover");
11. start();
12. }
a
a
e