public class YarnContainerHeartbeatServlet
extends javax.servlet.http.HttpServlet
ContainerHeartbeatResponse.
The heartbeat request contains the executionContainerId
which in YARN's case is the YARN container Id.
This servlet validates the container Id against the list
of running containers maintained in the YarnAppState.
The returned ContainerHeartbeatResponse.isAlive() is
true iff. the container Id exists in YarnAppState.runningYarnContainers.| Constructor and Description |
|---|
YarnContainerHeartbeatServlet(YarnAppState yarnAppState,
org.apache.samza.metrics.ReadableMetricsRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic YarnContainerHeartbeatServlet(YarnAppState yarnAppState, org.apache.samza.metrics.ReadableMetricsRegistry registry)
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOException