public class AgentResource extends Object
| Constructor and Description |
|---|
AgentResource() |
| Modifier and Type | Method and Description |
|---|---|
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)
|
@Inject public static void init(HeartBeatHandler instance)
public RegistrationResponse register(Register message, @Context javax.servlet.http.HttpServletRequest req) throws javax.ws.rs.WebApplicationException, InvalidStateTransitionException
message - Register messageInvalidStateTransitionExceptionAmbariExceptionExceptionjavax.ws.rs.WebApplicationExceptionpublic HeartBeatResponse heartbeat(HeartBeat message) throws javax.ws.rs.WebApplicationException
message - Heartbeat messageExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2016. All rights reserved.