public class AlertManagerBean extends Object implements AlertManagerLocal, AlertManagerRemote
| Constructor and Description |
|---|
AlertManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
int |
acknowledgeAlerts(org.rhq.core.domain.auth.Subject subject,
int[] alertIds)
Acknowledge alert(s) so that administrators know who is working on remedying the underlying
condition(s) that caused the alert(s) in the first place.
|
int |
acknowledgeAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context) |
org.rhq.core.domain.alert.Alert |
createAlert(org.rhq.core.domain.alert.Alert alert)
Persist a detached alert.
|
int |
deleteAlerts(long beginTime,
long endTime)
Remove alerts for the specified range of time.
|
int |
deleteAlerts(org.rhq.core.domain.auth.Subject user,
int[] alertIds)
Remove the alerts with the specified id's.
|
int |
deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> |
findAlertsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.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(Integer measurementDefinitionId,
long begin,
long end) |
Map<Integer,Integer> |
getAlertCountForSchedules(long begin,
long end,
List<Integer> scheduleIds) |
AlertSenderPluginManager |
getAlertPluginManager()
Return the plugin manager that is managing alert sender plugins
|
String |
prettyPrintAlertConditions(org.rhq.core.domain.alert.Alert alert,
boolean shortVersion)
Create a human readable description of the conditions that led to this alert.
|
String |
prettyPrintAlertURL(org.rhq.core.domain.alert.Alert alert) |
int |
purgeAlerts() |
Collection<String> |
sendAlertNotificationEmails(org.rhq.core.domain.alert.Alert alert,
Collection<String> emailAddresses) |
void |
sendAlertNotifications(org.rhq.core.domain.alert.Alert alert)
This is the core of the alert sending process.
|
boolean |
willDefinitionBeDisabled(org.rhq.core.domain.alert.Alert alert)
Tells us if the definition of the passed alert will be disabled after this alert was fired
|
public org.rhq.core.domain.alert.Alert createAlert(org.rhq.core.domain.alert.Alert alert)
createAlert in interface AlertManagerLocalpublic int deleteAlerts(org.rhq.core.domain.auth.Subject user,
int[] alertIds)
AlertManagerLocaldeleteAlerts in interface AlertManagerLocaldeleteAlerts in interface AlertManagerRemoteuser - calleralertIds - primary keys of the alerts to deletepublic int acknowledgeAlerts(org.rhq.core.domain.auth.Subject subject,
int[] alertIds)
acknowledgeAlerts in interface AlertManagerLocalacknowledgeAlerts in interface AlertManagerRemotesubject - calling useralertIds - PKs of the alerts to acknowledgepublic int deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
deleteAlertsByContext in interface AlertManagerLocaldeleteAlertsByContext in interface AlertManagerRemotepublic int acknowledgeAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
acknowledgeAlertsByContext in interface AlertManagerLocalacknowledgeAlertsByContext in interface AlertManagerRemotepublic int deleteAlerts(long beginTime,
long endTime)
deleteAlerts in interface AlertManagerLocalpublic int purgeAlerts()
public int getAlertCountByMeasurementDefinitionId(Integer measurementDefinitionId, long begin, long end)
getAlertCountByMeasurementDefinitionId in interface AlertManagerLocalpublic int getAlertCountByMeasurementDefinitionAndResources(int measurementDefinitionId,
int[] resourceIds,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResources in interface AlertManagerLocalpublic int getAlertCountByMeasurementDefinitionAndResourceGroup(int measurementDefinitionId,
int groupId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResourceGroup in interface AlertManagerLocalpublic int getAlertCountByMeasurementDefinitionAndAutoGroup(int measurementDefinitionId,
int resourceParentId,
int resourceTypeId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndAutoGroup in interface AlertManagerLocalpublic int getAlertCountByMeasurementDefinitionAndResource(int measurementDefinitionId,
int resourceId,
long beginDate,
long endDate)
getAlertCountByMeasurementDefinitionAndResource in interface AlertManagerLocalpublic Map<Integer,Integer> getAlertCountForSchedules(long begin, long end, List<Integer> scheduleIds)
getAlertCountForSchedules in interface AlertManagerLocalpublic void fireAlert(int alertDefinitionId)
fireAlert in interface AlertManagerLocalpublic void sendAlertNotifications(org.rhq.core.domain.alert.Alert alert)
sendAlertNotifications in interface AlertManagerLocalalert - the fired alertpublic AlertSenderPluginManager getAlertPluginManager()
getAlertPluginManager in interface AlertManagerLocalpublic Collection<String> sendAlertNotificationEmails(org.rhq.core.domain.alert.Alert alert, Collection<String> emailAddresses)
sendAlertNotificationEmails in interface AlertManagerLocalpublic String prettyPrintAlertConditions(org.rhq.core.domain.alert.Alert alert, boolean shortVersion)
prettyPrintAlertConditions in interface AlertManagerLocalalert - Alert to create human readable condition descriptionshortVersion - if true the messages printed are abbreviated to save spacepublic String prettyPrintAlertURL(org.rhq.core.domain.alert.Alert alert)
prettyPrintAlertURL in interface AlertManagerLocalpublic boolean willDefinitionBeDisabled(org.rhq.core.domain.alert.Alert alert)
willDefinitionBeDisabled in interface AlertManagerLocalalert - alert to checkpublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> findAlertsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.AlertCriteria criteria)
findAlertsByCriteria in interface AlertManagerLocalfindAlertsByCriteria in interface AlertManagerRemoteCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.