|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.alert.AlertManagerBean
public class AlertManagerBean
| Constructor Summary | |
|---|---|
AlertManagerBean()
|
|
| Method Summary | |
|---|---|
void |
acknowledgeAlert(int alertId,
Subject user)
Mark the matching alert as acknowledged by the user |
Alert |
createAlert(Alert alert)
Persist a detached alert. |
int |
deleteAlerts(long beginTime,
long endTime)
Remove alerts for the specified range of time. |
int |
deleteAlerts(Subject user,
int resourceId)
|
void |
deleteAlerts(Subject user,
int resourceId,
java.lang.Integer[] ids)
|
void |
deleteAlertsForResourceGroup(Subject user,
int resourceGroupId,
java.lang.Integer[] ids)
|
PageList<Alert> |
findAlerts(int resourceId,
java.lang.Integer alertDefinitionId,
AlertPriority priority,
java.lang.Long beginDate,
java.lang.Long endDate,
PageControl pageControl)
|
PageList<Alert> |
findAlerts(Subject subject,
java.lang.Integer[] resourceIds,
AlertPriority priority,
long timeRange,
PageControl pageControl)
|
PageList<Alert> |
findAlertsByCriteria(Subject subject,
AlertCriteria criteria)
|
void |
fireAlert(int alertDefinitionId)
|
int |
getAlertCountByMeasurementDefinitionAndAutoGroup(int measurementDefinitionId,
int resourceParentId,
int resourceTypeId,
long beginDate,
long endDate)
|
int |
getAlertCountByMeasurementDefinitionAndResource(int measurementDefinitionId,
int resourceId,
long beginDate,
long endDate)
|
int |
getAlertCountByMeasurementDefinitionAndResourceGroup(int measurementDefinitionId,
int groupId,
long beginDate,
long endDate)
|
int |
getAlertCountByMeasurementDefinitionAndResources(int measurementDefinitionId,
int[] resourceIds,
long beginDate,
long endDate)
|
int |
getAlertCountByMeasurementDefinitionId(java.lang.Integer measurementDefinitionId,
long begin,
long end)
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getAlertCountForSchedules(long begin,
long end,
java.util.List<java.lang.Integer> scheduleIds)
|
AlertSenderPluginManager |
getAlertPluginManager()
Return the plugin manager that is managing alert sender plugins |
Alert |
getById(int alertId)
Get the alert with the specified id. |
java.lang.String |
prettyPrintAlertConditions(Alert alert)
Create a human readable description of the conditions that led to this alert. |
java.lang.String |
prettyPrintAlertURL(Alert alert)
|
int |
purgeAlerts()
|
void |
sendAlertNotifications(Alert alert)
|
void |
triggerOperation(AlertDefinition alertDefinition)
|
Alert |
updateAlert(Alert alert)
|
boolean |
willDefinitionBeDisabled(Alert alert)
Tells us if the definition of the passed alert will be disabled after this alert was fired |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlertManagerBean()
| Method Detail |
|---|
public Alert createAlert(Alert alert)
createAlert in interface AlertManagerLocalpublic Alert updateAlert(Alert alert)
updateAlert in interface AlertManagerLocal
public void deleteAlerts(Subject user,
int resourceId,
java.lang.Integer[] ids)
deleteAlerts in interface AlertManagerLocal
public void deleteAlertsForResourceGroup(Subject user,
int resourceGroupId,
java.lang.Integer[] ids)
deleteAlertsForResourceGroup in interface AlertManagerLocal
public int deleteAlerts(Subject user,
int resourceId)
deleteAlerts in interface AlertManagerLocal
public int deleteAlerts(long beginTime,
long endTime)
deleteAlerts in interface AlertManagerLocalpublic int purgeAlerts()
public Alert getById(int alertId)
getById in interface AlertManagerLocal
public int getAlertCountByMeasurementDefinitionId(java.lang.Integer measurementDefinitionId,
long begin,
long end)
getAlertCountByMeasurementDefinitionId in interface AlertManagerLocal
public int getAlertCountByMeasurementDefinitionAndResources(int measurementDefinitionId,
int[] resourceIds,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResources in interface AlertManagerLocal
public int getAlertCountByMeasurementDefinitionAndResourceGroup(int measurementDefinitionId,
int groupId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResourceGroup in interface AlertManagerLocal
public int getAlertCountByMeasurementDefinitionAndAutoGroup(int measurementDefinitionId,
int resourceParentId,
int resourceTypeId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndAutoGroup in interface AlertManagerLocal
public int getAlertCountByMeasurementDefinitionAndResource(int measurementDefinitionId,
int resourceId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResource in interface AlertManagerLocal
public java.util.Map<java.lang.Integer,java.lang.Integer> getAlertCountForSchedules(long begin,
long end,
java.util.List<java.lang.Integer> scheduleIds)
getAlertCountForSchedules in interface AlertManagerLocal
public PageList<Alert> findAlerts(Subject subject,
java.lang.Integer[] resourceIds,
AlertPriority priority,
long timeRange,
PageControl pageControl)
findAlerts in interface AlertManagerLocal
public PageList<Alert> findAlerts(int resourceId,
java.lang.Integer alertDefinitionId,
AlertPriority priority,
java.lang.Long beginDate,
java.lang.Long endDate,
PageControl pageControl)
findAlerts in interface AlertManagerLocal
public void acknowledgeAlert(int alertId,
Subject user)
acknowledgeAlert in interface AlertManagerLocalalertId - Id of the alert to acknowledgeuser - user who acknowledged the alertpublic void fireAlert(int alertDefinitionId)
fireAlert in interface AlertManagerLocalpublic void triggerOperation(AlertDefinition alertDefinition)
triggerOperation in interface AlertManagerLocalpublic void sendAlertNotifications(Alert alert)
sendAlertNotifications in interface AlertManagerLocalpublic AlertSenderPluginManager getAlertPluginManager()
getAlertPluginManager in interface AlertManagerLocalpublic java.lang.String prettyPrintAlertConditions(Alert alert)
prettyPrintAlertConditions in interface AlertManagerLocalalert - Alert to create human readable condition description
public java.lang.String prettyPrintAlertURL(Alert alert)
prettyPrintAlertURL in interface AlertManagerLocalpublic boolean willDefinitionBeDisabled(Alert alert)
willDefinitionBeDisabled in interface AlertManagerLocalalert - alert to check
public PageList<Alert> findAlertsByCriteria(Subject subject,
AlertCriteria criteria)
findAlertsByCriteria in interface AlertManagerLocalfindAlertsByCriteria in interface AlertManagerRemote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||