@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, updateData
getHash, 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.AmbariException
public AlertDefinitionsAgentUpdateEvent getDeleteCluster(Long clusterId, Long hostId) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
protected 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.AmbariException
public void onHostToClusterAssign(HostsAddedEvent hostsAddedEvent) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
public 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.AmbariException
public void provideStaleAlertDefinitionUpdateEvent(AlertDefinitionEventType eventType, Long clusterId, Integer staleIntervalMultiplier, String hostName) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariException
Copyright © 2022 Apache Software Foundation. All rights reserved.