public class HeartBeatHandler extends Object
| Constructor and Description |
|---|
HeartBeatHandler(Clusters fsm,
ActionManager am,
Encryptor<AgentConfigsUpdateEvent> encryptor,
com.google.inject.Injector injector) |
@Inject public HeartBeatHandler(Clusters fsm, ActionManager am, @Named(value="AgentConfigEncryptor") Encryptor<AgentConfigsUpdateEvent> encryptor, com.google.inject.Injector injector)
public void start()
public void setHeartbeatProcessor(HeartbeatProcessor heartbeatProcessor)
public HeartbeatProcessor getHeartbeatProcessor()
public HeartBeatResponse handleHeartBeat(HeartBeat heartbeat) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic void handleComponentReportStatus(List<ComponentStatus> componentStatuses, String hostname) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic void handleCommandReportStatus(List<CommandReport> reports, String hostname) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic void handleHostReportStatus(HostStatusReport hostStatusReport, String hostname) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic void handleComponentVersionReports(ComponentVersionReports componentVersionReports, String hostname) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionprotected void processRecoveryReport(RecoveryReport recoveryReport, String hostname) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic HeartBeatResponse createRegisterCommand()
protected HeartBeatResponse createRestartCommand(Long currentResponseId)
public RegistrationResponse handleRegistration(Register register) throws InvalidStateTransitionException, org.apache.ambari.server.AmbariException
InvalidStateTransitionExceptionorg.apache.ambari.server.AmbariExceptionpublic ComponentsResponse handleComponents(String clusterName) throws org.apache.ambari.server.AmbariException
clusterName - org.apache.ambari.server.AmbariExceptionpublic void stop()
Copyright © 2022 Apache Software Foundation. All rights reserved.