SearchServer.java

Go to the documentation of this file.
00001 /*
00002  * SearchServer.java
00003  *
00004  *  Copyright (C) 2003 Alain MENSEGUEN
00005  *  www.net2map.org
00006  *
00007  *  This program is free software; you can redistribute it and/or
00008  *  modify it under the terms of the GNU General Public License
00009  *  as published by the Free Software Foundation; either version 2
00010  *  of the License, or (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU Lesser General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  */
00021 package org.net2map.pov.server;
00022 
00023 import java.rmi.*;
00024 import java.rmi.server.*;
00025 import sun.applet.*;
00026 
00030 public class SearchServer
00031 {
00033     public static void main(String args[])
00034     {
00037         ParameterSet pParameters;
00038         DatabaseConnection cConnection;
00039         //WordList wStopwords;
00040         //AffixList pAffixes;
00041         
00042         pParameters = new ParameterSet();
00043         cConnection = new DatabaseConnection( pParameters );
00044         
00045         try
00046         {
00048             cConnection.open();
00049 
00051             //wStopwords = new WordList( pParameters );
00052             //pAffixes = new AffixList( pParameters );
00053             //pAffixes.load( cConnection );
00054 
00055             System.out.println("Building server implementations...");
00056             
00058             /*Search s = new SearchImpl( pParameters, 
00059                                        cConnection, 
00060                                        wStopwords, 
00061                                        pAffixes );*/
00062             Search s = new SearchImpl( pParameters, 
00063                                        cConnection );
00064             
00065             System.out.println("Linking server implementations to registry...");
00066             
00067             Naming.rebind("searchManager", s);
00068             
00069             System.out.println("Waiting for client invocations...");
00070         }
00071         catch (Exception e)
00072         {
00073             System.out.println("Erreur : " + e);
00074         }
00075     }
00076 }
Accueil | Téléchargement | Manuel | Doc. technique | Sources CVS | Faq | Nous contacter
©2003 - All Rights Reserved