ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterMain.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/FilterMain.java (file contents):
Revision 1.18 by tdb, Fri Jan 12 00:45:25 2001 UTC vs.
Revision 1.20 by tdb, Sun Jan 28 06:03:58 2001 UTC

# Line 4 | Line 4 | package uk.ac.ukc.iscream.filter;
4   //---IMPORTS---
5   import uk.ac.ukc.iscream.util.*;
6   import uk.ac.ukc.iscream.core.*;
7 + import uk.ac.ukc.iscream.componentmanager.*;
8   import uk.ac.ukc.iscream.filter.*;
9  
10   /**
# Line 13 | Line 14 | import uk.ac.ukc.iscream.filter.*;
14   * @author  $Author$
15   * @version $Id$
16   */
17 < public class FilterMain implements uk.ac.ukc.iscream.util.Component {
17 > public class FilterMain implements Component {
18  
19   //---FINAL ATTRIBUTES---
20  
# Line 48 | Line 49 | public class FilterMain implements uk.ac.ukc.iscream.u
49          int UDPListenPort = 0;
50          int TCPListenPort = 0;
51          String parentFilterName = null;
52 <
52 >        
53          Configuration config = _refman.getCM().getConfiguration(FilterMain.NAME);
54          if (config == null) {
55 <            System.err.println("CRITICAL:Unable to obtain configuration" +
56 <                               "\n         Advise you check the i-scream log for more information.");
57 <            _logger.write(toString(), Logger.FATAL, "ERROR - unable to obtain configuration");
57 <            System.exit(1);
58 <        } else {
55 >            throw new ComponentStartException("Unable to obtain configuration for component");
56 >        }
57 >        else {
58              try {
59 +                // get the configuration properties we need
60                  UDPListenPort = Integer.parseInt(config.getProperty("Filter.UDPListenPort"));
61                  TCPListenPort = Integer.parseInt(config.getProperty("Filter.TCPListenPort"));
62                  parentFilterName = config.getProperty("Filter.parentFilter");
63              } catch (org.omg.CORBA.MARSHAL e) {
64 <                System.err.println ("CRITICAL:Unable to obtain required configuration property" +
65 <                                    "\n         Advise you check the i-scream log for more information.");
66 <                _logger.write(toString(), Logger.FATAL, "ERROR - required configuration property not present");
67 <                System.exit(1);
64 >                throw new ComponentStartException("Unable to obtain requried configuration property for component");
65              }
66          }
67 +        
68          _logger.write(toString(), Logger.SYSINIT, "configured");
69          
70          // get parent

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines