change
[IRC.git] / Robust / src / Benchmarks / Spider / Java / Spider.java
1 public class Spider {
2
3
4
5     public static void main(String[] parameters) {
6         String firstmachine=parameters[0];
7         String firstpage=parameters[1];
8         QueryList ql=new QueryList();
9         QueryQueue toprocess=new QueryQueue();
10         Query firstquery=new Query(firstmachine, firstpage);
11         toprocess.addQuery(firstquery);
12         QueryThread qt1=new QueryThread(toprocess, ql);
13         qt1.start();
14         QueryThread qt2=new QueryThread(toprocess, ql);
15         qt2.start();
16         QueryThread qt3=new QueryThread(toprocess, ql);
17         qt3.start();
18         while(true)
19             Thread.sleep(1000000);
20     }
21
22
23 }