Changeset 870 for trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitor.java
- Timestamp:
- 10/12/12 14:04:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitor.java
r857 r870 5 5 /** 6 6 * <p> 7 * TODO comment 7 * The HTML monitor starts a web server ({@link HtmlMonitorServer}) that receives log messages 8 * of the HTML monitor java script. These messages are logged using the 9 * {@link HtmlMonitorLogManager}. The class assures that on shutdown e.g. caused by CTRL-C the 10 * server and the log manager are stopped correctly. 8 11 * </p> 9 12 * … … 12 15 public class HtmlMonitor implements HtmlMonitorComponent { 13 16 14 /** */ 17 /** 18 * the port on which the webserver shall listen. Defaults to 8090. 19 */ 15 20 private int port = 8090; 16 21 17 /** */ 22 /** 23 * the web server receiving the log messages 24 */ 18 25 private HtmlMonitorServer server; 19 26 20 /** */ 27 /** 28 * the directory into which the log files shall be written 29 */ 21 30 private String logFileBaseDir; 22 31 23 /** */ 32 /** 33 * the log manager being responsible for performing the logging 34 */ 24 35 private HtmlMonitorLogManager logManager; 25 36 26 /** */ 37 /** 38 * the thread needed to handle CTRL-C events 39 */ 27 40 private Thread shutdownHook; 28 41 29 42 /** 30 43 * <p> 31 * TODO: comment 44 * initializes the monitor with the command line arguments. Those may be the log directory 45 * as first argument and the port to listen on as second 32 46 * </p> 33 47 * 34 * @param logFileBaseDir 48 * @param commandLineArguments the command line arguments when starting the monitor using 49 * the {@link Runner} 35 50 */ 36 HtmlMonitor(String[] commandLineArguments) {51 public HtmlMonitor(String[] commandLineArguments) { 37 52 if (commandLineArguments.length > 0) { 38 53 this.logFileBaseDir = commandLineArguments[0];
Note: See TracChangeset
for help on using the changeset viewer.