Changeset 716

Show
Ignore:
Timestamp:
03/07/05 20:17:11 (4 years ago)
Author:
torben
Message:

Started implementing a Daemon model. The thread is present, but
no hooks in the main class yet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/external-tools/indexer-backends/lucene/org/midgardproject/XmlComm.java

    r715 r716  
    7878     
    7979    /** 
    80      * Parses the request and writes the response to the output stream. 
    81      *  
     80     * Parses and executes the request, the output is written to the configured 
     81     * output stream. 
    8282     */ 
    8383    public void ParseRequest() 
  • trunk/external-tools/indexer-backends/lucene/org/midgardproject/lucene/Main.java

    r714 r716  
    1010 
    1111/** 
    12  * @author torben 
    13  * 
    14  * TODO To change the template for this generated type comment go to 
    15  * Window - Preferences - Java - Code Style - Code Templates 
     12 * Indexer Daemon 
     13 *  
     14 * Address and socket to bind to is taken from the command line. 
     15 *  
     16 * Launches a thread for each incoming connection. 
    1617 */ 
    1718public class Main  
     
    2223        try 
    2324        { 
    24             XmlComm comm = new XmlComm(new java.io.FileInputStream(args[0]), System.out); 
    25             // XmlComm comm = new XmlComm(System.in, System.out); 
    26             comm.ParseRequest(); 
     25            // Create a server socket 
     26            // loop infinitly 
     27            // launch worker threads 
     28             
     29            // open: shutdown function 
     30            // open: daemon threads vs. worker threads? 
    2731        } 
    2832        catch (Exception ex)