9 |
|
|
10 |
|
/** |
11 |
|
* A startup component for the Local Clients. |
12 |
+ |
* This class starts the CORBA client used for alerting |
13 |
+ |
* purposes. It reads data using the ClientServant from CORBA |
14 |
+ |
* calls by the i-scream client interface. This data is then |
15 |
+ |
* used by the MonitorManager to pass to Monitors. Monitors then |
16 |
+ |
* analyse the data and raise alerts if needed, these are passed to |
17 |
+ |
* the Alerters, which send out alerts. They are looked after by |
18 |
+ |
* the AlerterManager. |
19 |
|
* |
20 |
|
* @author $Author$ |
21 |
|
* @version $Id$ |
42 |
|
//---PUBLIC METHODS--- |
43 |
|
|
44 |
|
/** |
45 |
< |
* This starts the Local Client component |
45 |
> |
* This starts the Local Client component. |
46 |
> |
* This starts the ClientServant, the MonitorManager and |
47 |
> |
* the AlerterManager, aswell as initialising any queues |
48 |
> |
* and obtaining any initial configuration. |
49 |
> |
* |
50 |
> |
* @throws ComponentStartException if the component fails to start |
51 |
|
*/ |
52 |
|
public void start() throws ComponentStartException { |
53 |
|
// get references to key objects |
91 |
|
try { |
92 |
|
// try to get the interval, if this fails, we won't start up the monitor |
93 |
|
int queueMonitorInterval = Integer.parseInt(cp.getProperty(NAME, "Queue.MonitorInterval")); |
94 |
< |
_alerterQueue.startMonitor(queueMonitorInterval*1000, _monitorQueue, NAME + " DataQueue"); |
95 |
< |
_monitorQueue.startMonitor(queueMonitorInterval*1000, _monitorQueue, NAME + " HeartbeatQueue"); |
94 |
> |
_alerterQueue.startMonitor(queueMonitorInterval*1000, _monitorQueue, NAME + " Alerter"); |
95 |
> |
_monitorQueue.startMonitor(queueMonitorInterval*1000, _monitorQueue, NAME + " Monitor"); |
96 |
|
} catch (PropertyNotFoundException e) { |
97 |
|
_logger.write(toString(), Logger.WARNING, "failed to find queue monitor config, disabling. " + e); |
98 |
|
} |
127 |
|
alertMan.start(); |
128 |
|
|
129 |
|
_logger.write(toString(), Logger.SYSINIT, "started"); |
118 |
– |
|
130 |
|
} |
131 |
|
|
132 |
|
/** |