public class AgentConfigsHolder extends AgentHostDataHolder<AgentConfigsUpdateEvent>
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
updateLock| Constructor and Description |
|---|
AgentConfigsHolder(AmbariEventPublisher ambariEventPublisher,
Encryptor<AgentConfigsUpdateEvent> encryptor) |
| Modifier and Type | Method and Description |
|---|---|
AgentConfigsUpdateEvent |
getCurrentData(Long hostId) |
AgentConfigsUpdateEvent |
getCurrentDataExcludeCluster(Long hostId,
Long clusterId) |
protected AgentConfigsUpdateEvent |
getEmptyData() |
AgentConfigsUpdateEvent |
getUpdateIfChanged(String agentHash,
Long hostId) |
protected AgentConfigsUpdateEvent |
handleUpdate(AgentConfigsUpdateEvent current,
AgentConfigsUpdateEvent update) |
protected boolean |
isIdentifierValid(AgentConfigsUpdateEvent data) |
protected void |
regenerateDataIdentifiers(AgentConfigsUpdateEvent data) |
protected void |
setIdentifiersToEventUpdate(AgentConfigsUpdateEvent update,
AgentConfigsUpdateEvent hostData) |
void |
updateData(Long clusterId,
List<Long> hostIds) |
getData, getData, initializeDataIfNeeded, onHostRemoved, resetData, setData, updateDatagetHash, getHash@Inject public AgentConfigsHolder(AmbariEventPublisher ambariEventPublisher, Encryptor<AgentConfigsUpdateEvent> encryptor)
public AgentConfigsUpdateEvent getCurrentData(Long hostId) throws org.apache.ambari.server.AmbariException
getCurrentData in class AgentHostDataHolder<AgentConfigsUpdateEvent>org.apache.ambari.server.AmbariExceptionpublic AgentConfigsUpdateEvent getCurrentDataExcludeCluster(Long hostId, Long clusterId) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionprotected AgentConfigsUpdateEvent handleUpdate(AgentConfigsUpdateEvent current, AgentConfigsUpdateEvent update)
handleUpdate in class AgentHostDataHolder<AgentConfigsUpdateEvent>public void updateData(Long clusterId, List<Long> hostIds) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic AgentConfigsUpdateEvent getUpdateIfChanged(String agentHash, Long hostId) throws org.apache.ambari.server.AmbariException
getUpdateIfChanged in class AgentHostDataHolder<AgentConfigsUpdateEvent>org.apache.ambari.server.AmbariExceptionprotected void regenerateDataIdentifiers(AgentConfigsUpdateEvent data)
regenerateDataIdentifiers in class AgentDataHolder<AgentConfigsUpdateEvent>protected boolean isIdentifierValid(AgentConfigsUpdateEvent data)
isIdentifierValid in class AgentDataHolder<AgentConfigsUpdateEvent>protected void setIdentifiersToEventUpdate(AgentConfigsUpdateEvent update, AgentConfigsUpdateEvent hostData)
setIdentifiersToEventUpdate in class AgentHostDataHolder<AgentConfigsUpdateEvent>protected AgentConfigsUpdateEvent getEmptyData()
getEmptyData in class AgentDataHolder<AgentConfigsUpdateEvent>Copyright © 2022 Apache Software Foundation. All rights reserved.