Package | Description |
---|---|
org.apache.ambari.server.controller.internal | |
org.apache.ambari.server.events | |
org.apache.ambari.server.orm.dao | |
org.apache.ambari.server.orm.entities |
Modifier and Type | Method and Description |
---|---|
static void |
AlertResourceProviderUtils.verifyViewAuthorization(AlertCurrentEntity entity)
Tests if the authenticated user is authorized to view service- or cluster-level alert data.
|
Modifier and Type | Method and Description |
---|---|
AlertCurrentEntity |
AlertStateChangeEvent.getCurrentAlert()
Gets the current alert.
|
AlertCurrentEntity |
InitialAlertEvent.getCurrentAlert()
Gets the current alert.
|
Constructor and Description |
---|
AlertStateChangeEvent(long clusterId,
Alert alert,
AlertCurrentEntity currentAlert,
AlertState fromState,
AlertFirmness fromFirmness)
Constructor.
|
InitialAlertEvent(long clusterId,
Alert alert,
AlertCurrentEntity currentAlert)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AlertCurrentEntity |
AlertsDAO.findCurrentByHostAndName(long clusterId,
String hostName,
String alertName)
Locate the current alert for the provided service and alert name.
|
AlertCurrentEntity |
AlertsDAO.findCurrentById(long alertId)
Gets a current alert with the specified ID.
|
AlertCurrentEntity |
AlertsDAO.findCurrentByNameNoHost(long clusterId,
String alertName)
Locate the current alert for the provided service and alert name, but when
host is not set (
IS NULL ). |
AlertCurrentEntity |
AlertsDAO.merge(AlertCurrentEntity alert)
Merge the speicified current alert with the existing alert in the database.
|
AlertCurrentEntity |
AlertsDAO.merge(AlertCurrentEntity alert,
boolean updateCacheOnly)
Updates the internal cache of alerts with the specified alert.
|
Modifier and Type | Method and Description |
---|---|
List<AlertCurrentEntity> |
AlertsDAO.findAll(AlertCurrentRequest request)
Finds all
AlertCurrentEntity that match the provided
AlertCurrentRequest . |
List<AlertCurrentEntity> |
AlertsDAO.findCurrent()
Gets the current alerts.
|
List<AlertCurrentEntity> |
AlertsDAO.findCurrentByCluster(long clusterId)
Gets the current alerts for a given cluster.
|
List<AlertCurrentEntity> |
AlertsDAO.findCurrentByDefinitionId(long definitionId)
Gets the current alerts for the specified definition ID.
|
List<AlertCurrentEntity> |
AlertsDAO.findCurrentByService(long clusterId,
String serviceName)
Gets the current alerts for a given service.
|
Modifier and Type | Method and Description |
---|---|
void |
AlertsDAO.create(AlertCurrentEntity alert)
Persists a new current alert.
|
AlertCurrentEntity |
AlertsDAO.merge(AlertCurrentEntity alert)
Merge the speicified current alert with the existing alert in the database.
|
AlertCurrentEntity |
AlertsDAO.merge(AlertCurrentEntity alert,
boolean updateCacheOnly)
Updates the internal cache of alerts with the specified alert.
|
void |
AlertsDAO.refresh(AlertCurrentEntity alert)
Refresh the state of the current alert from the database.
|
void |
AlertsDAO.remove(AlertCurrentEntity alert)
Removes the specified current alert from the database.
|
Modifier and Type | Field and Description |
---|---|
static javax.persistence.metamodel.SingularAttribute<AlertCurrentEntity,AlertDefinitionEntity> |
AlertCurrentEntity_.alertDefinition |
static javax.persistence.metamodel.SingularAttribute<AlertCurrentEntity,AlertHistoryEntity> |
AlertCurrentEntity_.alertHistory |
static javax.persistence.metamodel.SingularAttribute<AlertCurrentEntity,Long> |
AlertCurrentEntity_.alertId |
static javax.persistence.metamodel.SingularAttribute<AlertCurrentEntity,String> |
AlertCurrentEntity_.latestText |
static javax.persistence.metamodel.SingularAttribute<AlertCurrentEntity,Long> |
AlertCurrentEntity_.latestTimestamp |
static javax.persistence.metamodel.SingularAttribute<AlertCurrentEntity,MaintenanceState> |
AlertCurrentEntity_.maintenanceState |
static javax.persistence.metamodel.SingularAttribute<AlertCurrentEntity,Long> |
AlertCurrentEntity_.originalTimestamp |
Copyright © 2022 Apache Software Foundation. All rights reserved.