Package | Description |
---|---|
org.apache.ambari.server.orm.dao | |
org.apache.ambari.server.orm.entities |
Modifier and Type | Method and Description |
---|---|
AlertNoticeEntity |
AlertDispatchDAO.findNoticeById(long noticeId)
Gets a notification with the specified ID.
|
AlertNoticeEntity |
AlertDispatchDAO.findNoticeByUuid(String uuid)
Gets a notification with the specified UUID.
|
AlertNoticeEntity |
AlertDispatchDAO.merge(AlertNoticeEntity alertNotice)
Merge the specified notification with the existing target in the database.
|
Modifier and Type | Method and Description |
---|---|
List<AlertNoticeEntity> |
AlertDispatchDAO.createNotices(List<AlertNoticeEntity> entities)
Creates new alert notices using the
EntityManager.merge(Object)
method to ensure that the associated AlertTargetEntity instances
are also updated. |
List<AlertNoticeEntity> |
AlertDispatchDAO.findAllNotices()
Gets all alert notifications stored in the database.
|
List<AlertNoticeEntity> |
AlertDispatchDAO.findAllNotices(AlertNoticeRequest request)
Gets all alert notifications stored in the database that match the given
predicate, pagination, and sorting.
|
List<AlertNoticeEntity> |
AlertDispatchDAO.findPendingNotices()
Gets all
AlertNoticeEntity instances that are
NotificationState.PENDING and not yet dispatched. |
Modifier and Type | Method and Description |
---|---|
void |
AlertDispatchDAO.create(AlertNoticeEntity alertNotice)
Persists a new notification.
|
AlertNoticeEntity |
AlertDispatchDAO.merge(AlertNoticeEntity alertNotice)
Merge the specified notification with the existing target in the database.
|
void |
AlertDispatchDAO.refresh(AlertNoticeEntity alertNotice)
Refresh the state of the notification from the database.
|
void |
AlertDispatchDAO.remove(AlertNoticeEntity alertNotice)
Removes the specified notification from the database.
|
Modifier and Type | Method and Description |
---|---|
List<AlertNoticeEntity> |
AlertDispatchDAO.createNotices(List<AlertNoticeEntity> entities)
Creates new alert notices using the
EntityManager.merge(Object)
method to ensure that the associated AlertTargetEntity instances
are also updated. |
Modifier and Type | Field and Description |
---|---|
static javax.persistence.metamodel.SingularAttribute<AlertNoticeEntity,AlertNoticeEntity> |
AlertNoticeEntity_.alertHistory |
static javax.persistence.metamodel.SingularAttribute<AlertNoticeEntity,AlertNoticeEntity> |
AlertNoticeEntity_.alertHistory |
static javax.persistence.metamodel.SingularAttribute<AlertNoticeEntity,AlertTargetEntity> |
AlertNoticeEntity_.alertTarget |
static javax.persistence.metamodel.SingularAttribute<AlertNoticeEntity,Long> |
AlertNoticeEntity_.notificationId |
static javax.persistence.metamodel.SingularAttribute<AlertNoticeEntity,NotificationState> |
AlertNoticeEntity_.notifyState |
static javax.persistence.metamodel.SingularAttribute<AlertNoticeEntity,String> |
AlertNoticeEntity_.uuid |
Modifier and Type | Method and Description |
---|---|
List<AlertNoticeEntity> |
AlertTargetEntity.getAlertNotices() |
Modifier and Type | Method and Description |
---|---|
protected void |
AlertTargetEntity.addAlertNotice(AlertNoticeEntity notice)
Adds the specified notice to the notices that have been sent out for this
target.
|
Modifier and Type | Method and Description |
---|---|
void |
AlertTargetEntity.setAlertNotices(List<AlertNoticeEntity> alertNotices) |
Copyright © 2022 Apache Software Foundation. All rights reserved.