| 47 |
|
|
| 48 |
|
Configuration config = _refman.getCM().getConfiguration("RootFilter"); |
| 49 |
|
if (config == null) { |
| 50 |
< |
System.err.println("CRITICAL:Unable to obtain configuration" + |
| 51 |
< |
"\n Advise you check the i-scream log for more information."); |
| 52 |
< |
_logger.write(toString(), Logger.FATAL, "ERROR - unable to obtain configuration"); |
| 53 |
< |
System.exit(1); |
| 54 |
< |
} else { |
| 50 |
> |
throw new ComponentStartException("Unable to obtain configuration for component"); |
| 51 |
> |
} |
| 52 |
> |
else { |
| 53 |
|
try { |
| 54 |
+ |
// get the configuration properties we need |
| 55 |
|
ourName = config.getProperty("RootFilter.name"); |
| 56 |
|
realInterface = config.getProperty("RootFilter.realtimeInterfaceName"); |
| 57 |
|
dbInterface = config.getProperty("RootFilter.dbInterfaceName"); |
| 58 |
|
} catch (org.omg.CORBA.MARSHAL e) { |
| 59 |
< |
System.err.println ("CRITICAL:Unable to obtain required configuration property" + |
| 61 |
< |
"\n Advise you check the i-scream log for more information."); |
| 62 |
< |
_logger.write(toString(), Logger.FATAL, "ERROR - required configuration property not present"); |
| 63 |
< |
System.exit(1); |
| 59 |
> |
throw new ComponentStartException("Unable to obtain requried configuration property for component"); |
| 60 |
|
} |
| 61 |
|
} |
| 62 |
+ |
|
| 63 |
|
// now we have the name of the Root Filter we set it |
| 64 |
|
NAME = ourName; |
| 65 |
|
|
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
Queue queue = new Queue(); |
| 79 |
+ |
// startup a monitor on this queue, every minute |
| 80 |
+ |
queue.startMonitor(60*1000, NAME); |
| 81 |
|
|
| 82 |
|
if (realInterface == null) { |
| 83 |
|
_logger.write(toString(), Logger.DEBUG, "hooked to interfaces - " + dbInterface); |