54 |
|
|
55 |
|
//---PUBLIC METHODS--- |
56 |
|
|
57 |
+ |
/** |
58 |
+ |
* Reads the next alert from the alerter queue for this |
59 |
+ |
* alerter. It then looks up Alerter.<alerter name>.level in |
60 |
+ |
* the configuration to determine the lowest level of alert |
61 |
+ |
* the extending alerter should send. If the alert is |
62 |
+ |
* above this level, or if the alert is an OK for an alert |
63 |
+ |
* escalation which did rise above this alerters level, it then |
64 |
+ |
* calls sendAlert to tell the alerter to send the alert. If it |
65 |
+ |
* isn't above this level, it ignores the alert. |
66 |
+ |
*/ |
67 |
|
public void run() { |
68 |
|
while(_running) { |
69 |
|
try { |
182 |
|
protected ConfigurationProxy _cp = ConfigurationProxy.getInstance(); |
183 |
|
|
184 |
|
/** |
185 |
< |
* A reference to the LocalClient alerter queue, into which |
185 |
> |
* A reference to the Alerter queue, into which |
186 |
|
* all new alerts will be placed. |
187 |
|
*/ |
188 |
< |
protected Queue _alerterQueue = ClientMain._alerterQueue; |
188 |
> |
protected Queue _alerterQueue = AlerterManager.getInstance().getQueue(); |
189 |
|
|
190 |
|
/** |
191 |
|
* The ID of the queue the alerter will use. |