01: package examples;
02:
03: import java.io.*;
04: import vicazh.hyperpool.stream.net.*;
05: import vicazh.hyperpool.stream.net.http.*;
06:
07: public class MyApp2 {
08:
09: public static void main(String[] args) throws IOException {
10: HttpService httpService = new HttpService(3600000);
11:
12: MonitorService monitorService = new MonitorService();
13: monitorService.setElement(httpService);
14:
15: InService inService = new InService("In: Port already in use",
16: 3600000);
17: inService.setElement(monitorService);
18: inService.setPort(8080);
19: }
20:
21: }
|