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 messageInvalidStateTransitionException
org.apache.ambari.server.AmbariException
Exception
javax.ws.rs.WebApplicationException
public HeartBeatResponse heartbeat(HeartBeat message) throws javax.ws.rs.WebApplicationException
message
- Heartbeat messageException
javax.ws.rs.WebApplicationException
public ComponentsResponse components(String clusterName)
clusterName
- of clusterException
Copyright © 2022 Apache Software Foundation. All rights reserved.