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 messageInvalidStateTransitionException
AmbariException
Exception
javax.ws.rs.WebApplicationException
public HeartBeatResponse heartbeat(HeartBeat message) throws javax.ws.rs.WebApplicationException
message
- Heartbeat messageException
javax.ws.rs.WebApplicationException
Copyright © 2014. All rights reserved.