@Singleton public class AlertDefinitionsHolder extends AgentHostDataHolder<AlertDefinitionsAgentUpdateEvent>
updateLock| Constructor and Description |
|---|
AlertDefinitionsHolder(AmbariEventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
protected AlertDefinitionsAgentUpdateEvent |
getCurrentData(Long hostId) |
AlertDefinitionsAgentUpdateEvent |
getDeleteCluster(Long clusterId,
Long hostId) |
protected AlertDefinitionsAgentUpdateEvent |
getEmptyData() |
protected AlertDefinitionsAgentUpdateEvent |
handleUpdate(AlertDefinitionsAgentUpdateEvent current,
AlertDefinitionsAgentUpdateEvent update) |
void |
onHostsRemoved(HostsRemovedEvent event) |
void |
onHostToClusterAssign(HostsAddedEvent hostsAddedEvent) |
void |
provideAlertDefinitionAgentUpdateEvent(AlertDefinitionEventType eventType,
Long clusterId,
Map<Long,AlertDefinition> alertDefinitions,
String hostName) |
void |
provideStaleAlertDefinitionUpdateEvent(AlertDefinitionEventType eventType,
Long clusterId,
Integer staleIntervalMultiplier,
String hostName) |
getData, getData, getUpdateIfChanged, initializeDataIfNeeded, onHostRemoved, resetData, setData, setIdentifiersToEventUpdate, updateDatagetHash, getHash, isIdentifierValid, regenerateDataIdentifiers@Inject public AlertDefinitionsHolder(AmbariEventPublisher eventPublisher)
protected AlertDefinitionsAgentUpdateEvent getCurrentData(Long hostId) throws org.apache.ambari.server.AmbariException
getCurrentData in class AgentHostDataHolder<AlertDefinitionsAgentUpdateEvent>org.apache.ambari.server.AmbariExceptionpublic AlertDefinitionsAgentUpdateEvent getDeleteCluster(Long clusterId, Long hostId) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionprotected AlertDefinitionsAgentUpdateEvent getEmptyData()
getEmptyData in class AgentDataHolder<AlertDefinitionsAgentUpdateEvent>protected AlertDefinitionsAgentUpdateEvent handleUpdate(AlertDefinitionsAgentUpdateEvent current, AlertDefinitionsAgentUpdateEvent update) throws org.apache.ambari.server.AmbariException
handleUpdate in class AgentHostDataHolder<AlertDefinitionsAgentUpdateEvent>org.apache.ambari.server.AmbariExceptionpublic void onHostToClusterAssign(HostsAddedEvent hostsAddedEvent) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic void onHostsRemoved(HostsRemovedEvent event)
public void provideAlertDefinitionAgentUpdateEvent(AlertDefinitionEventType eventType, Long clusterId, Map<Long,AlertDefinition> alertDefinitions, String hostName) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic void provideStaleAlertDefinitionUpdateEvent(AlertDefinitionEventType eventType, Long clusterId, Integer staleIntervalMultiplier, String hostName) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.