|
||||||||||
| 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 | |
|---|---|
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 |
| 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 org.rhq.core.domain.alert.Alert createAlert(org.rhq.core.domain.alert.Alert alert)
createAlert in interface AlertManagerLocal
public int deleteAlerts(org.rhq.core.domain.auth.Subject user,
int[] alertIds)
AlertManagerLocal
deleteAlerts in interface AlertManagerLocaldeleteAlerts in interface AlertManagerRemoteuser - calleralertIds - primary keys of the alerts to delete
public 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 acknowledge
public int deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
deleteAlertsByContext in interface AlertManagerLocaldeleteAlertsByContext in interface AlertManagerRemote
public int acknowledgeAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
acknowledgeAlertsByContext in interface AlertManagerLocalacknowledgeAlertsByContext in interface AlertManagerRemote
public int deleteAlerts(long beginTime,
long endTime)
deleteAlerts in interface AlertManagerLocalpublic int purgeAlerts()
public int getAlertCountByMeasurementDefinitionId(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 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 AlertManagerLocal
public Collection<String> sendAlertNotificationEmails(org.rhq.core.domain.alert.Alert alert,
Collection<String> emailAddresses)
sendAlertNotificationEmails in interface AlertManagerLocal
public 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 space
public 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 check
public 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 AlertManagerRemote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||