Ignore:
Timestamp:
10/12/12 14:04:09 (12 years ago)
Author:
pharms
Message:
  • added some comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitor.java

    r857 r870  
    55/** 
    66 * <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. 
    811 * </p> 
    912 *  
     
    1215public class HtmlMonitor implements HtmlMonitorComponent { 
    1316 
    14     /** */ 
     17    /** 
     18     * the port on which the webserver shall listen. Defaults to 8090. 
     19     */ 
    1520    private int port = 8090; 
    1621     
    17     /** */ 
     22    /** 
     23     * the web server receiving the log messages 
     24     */ 
    1825    private HtmlMonitorServer server; 
    1926     
    20     /** */ 
     27    /** 
     28     * the directory into which the log files shall be written 
     29     */ 
    2130    private String logFileBaseDir; 
    2231 
    23     /** */ 
     32    /** 
     33     * the log manager being responsible for performing the logging 
     34     */ 
    2435    private HtmlMonitorLogManager logManager; 
    2536 
    26     /** */ 
     37    /** 
     38     * the thread needed to handle CTRL-C events 
     39     */ 
    2740    private Thread shutdownHook; 
    2841 
    2942    /** 
    3043     * <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 
    3246     * </p> 
    3347     * 
    34      * @param logFileBaseDir 
     48     * @param commandLineArguments the command line arguments when starting the monitor using 
     49     *                             the {@link Runner} 
    3550     */ 
    36     HtmlMonitor(String[] commandLineArguments) { 
     51    public HtmlMonitor(String[] commandLineArguments) { 
    3752        if (commandLineArguments.length > 0) { 
    3853            this.logFileBaseDir = commandLineArguments[0]; 
Note: See TracChangeset for help on using the changeset viewer.