public class GetSlavesServlet extends BaseHttpServlet implements CartePluginInterface
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_PATH |
static String |
XML_TAG_SLAVESERVER_DETECTIONS |
detections, jobMap, log, socketRepository, transformationMap
Constructor and Description |
---|
GetSlavesServlet() |
GetSlavesServlet(List<SlaveServerDetection> slaveServers) |
GetSlavesServlet(List<SlaveServerDetection> slaveServers,
boolean isJetty) |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
String |
getContextPath() |
String |
getService() |
String |
toString() |
convertContextPath, doDelete, doPost, doPut, getDetections, getJobMap, getSocketRepository, getTransformationMap, isJettyMode, logBasic, logBasic, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logRowlevel, setJettyMode, setup
doHead, doOptions, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isJettyMode, setJettyMode, setup
public static final String XML_TAG_SLAVESERVER_DETECTIONS
public static final String CONTEXT_PATH
public GetSlavesServlet()
public GetSlavesServlet(List<SlaveServerDetection> slaveServers)
public GetSlavesServlet(List<SlaveServerDetection> slaveServers, boolean isJetty)
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
Gets list of slave servers. Retrieves list of slave servers which are known to specific server.
Example Request:
GET /kettle/getSlaves
element: | (custom) |
media types: | text/xml |
Response contains list of slave servers.
Example Response:
Dynamic slave [localhost:909] localhost 909 cluster Encrypted 2be98afc86aa7f2e4cb1aa265cd86aac8 N Y 2014/11/17 06:42:28.043 2014/11/17 06:42:27.372
code | description |
---|---|
200 | Request was processed. |
500 | Internal server error occurs during request processing. |
doGet
in interface CartePluginInterface
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public String getService()
getService
in interface CarteServletInterface
public String getContextPath()
getContextPath
in interface CartePluginInterface
Copyright © 2018 Hitachi Vantara. All rights reserved.