|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.process.queue.AlertQueue
Manager for all alerts generated during a processing run.
| Constructor Summary | |
AlertQueue()
Creates a new instance of AlertQueue. |
|
| Method Summary | |
void |
addAlert(Alert alert)
Adds the alert to the queue. |
int |
getAlertCount()
Calculates how many distinct Alert objects exist in the queue. |
int |
getAlertCount(AlertPriority priority)
Calculates how many distinct Alert objects exist in the queue with the given priority. |
Alert[] |
getAlerts()
Retrieves all Alert objects in the queue. |
Alert[] |
getAlerts(AlertPriority priority)
Retrieves all Alert objects in the queue of the given priority. |
void |
logAllAlerts()
Sends all Alerts to the logger. |
void |
logErrorAlerts()
Sends all ERROR Alerts to the logger. |
void |
logFatalAlerts()
Sends all FATAL Alerts to the logger. |
void |
logInfoAlerts()
Sends all INFO Alerts to the logger. |
void |
logWarningAlerts()
Sends all WARNING Alerts to the logger. |
void |
removeAlert(Alert alert)
Removes the alert from the queue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AlertQueue()
| Method Detail |
public void addAlert(Alert alert)
alert - Alert to addpublic void removeAlert(Alert alert)
alert - Alert to removepublic Alert[] getAlerts()
public Alert[] getAlerts(AlertPriority priority)
priority - AlertPriority to get
public int getAlertCount()
public int getAlertCount(AlertPriority priority)
priority - AlertPriority to count
public void logFatalAlerts()
public void logErrorAlerts()
public void logWarningAlerts()
public void logInfoAlerts()
public void logAllAlerts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||