public class AgentResource extends Object
| Constructor and Description |
|---|
AgentResource() |
| Modifier and Type | Method and Description |
|---|---|
ComponentsResponse |
components(String clusterName)
Retrieves the components category map for stack used on cluster
(Internal API to be used by Ambari agent).
|
HeartBeatResponse |
heartbeat(HeartBeat message)
Update state of the node (Internal API to be used by Ambari agent).
|
static void |
init(HeartBeatHandler instance) |
RegistrationResponse |
register(Register message,
javax.servlet.http.HttpServletRequest req)
Register information about the host (Internal API to be used for
Ambari Agent)
|
static void |
startHeartBeatHandler()
Explicitly start HH
|
@Inject public static void init(HeartBeatHandler instance)
public static void startHeartBeatHandler()
public RegistrationResponse register(Register message, @Context javax.servlet.http.HttpServletRequest req) throws javax.ws.rs.WebApplicationException, InvalidStateTransitionException
message - Register messageInvalidStateTransitionExceptionorg.apache.ambari.server.AmbariExceptionExceptionjavax.ws.rs.WebApplicationExceptionpublic HeartBeatResponse heartbeat(HeartBeat message) throws javax.ws.rs.WebApplicationException
message - Heartbeat messageExceptionjavax.ws.rs.WebApplicationExceptionpublic ComponentsResponse components(String clusterName)
clusterName - of clusterExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.