public class GridAutoUpgradeDelegateServlet
extends org.openqa.grid.web.servlet.RegistryBasedServlet
RegistryBasedServlet
servlet is responsible for getting the following information from a Grid admin, and
relaying it to each of the nodes, so that they may go about gracefully upgrading themselves once they are done with
servicing any of the tests that are already running. This information is captured by NodeAutoUpgradeServlet
which actually undertakes the task of creating a simple properties file and dumps in all of this relayed information.
LoginServlet
available. Furthermore, only nodes which use
SeLionRemoteProxy
, NodeAutoUpgradeServlet
, and NodeForceRestartServlet
or implement support
for the HTTP requests /extra/NodeAutoUpgradeServlet and /extra/NodeForceRestartServlet are compatible.Modifier and Type | Field and Description |
---|---|
static String |
IDS
Request parameter which may contain the list of nodes which fail to upgrade
|
static String |
PARAM_JSON
Request parameter which contains the new download.json to apply
|
static String |
PENDING_NODE_FILE |
static String |
RESOURCE_PAGE_FILE
Resource path to the grid auto upgrade html template file
|
Constructor and Description |
---|
GridAutoUpgradeDelegateServlet() |
GridAutoUpgradeDelegateServlet(org.openqa.grid.internal.Registry registry) |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method constructs the html page that gets the information pertaining to the jars/binaries and their
artifact checksums from the user.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public static final String RESOURCE_PAGE_FILE
public static final String PENDING_NODE_FILE
public static final String IDS
public static final String PARAM_JSON
public GridAutoUpgradeDelegateServlet()
public GridAutoUpgradeDelegateServlet(org.openqa.grid.internal.Registry registry)
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- HttpServletRequest
that represent the servlet requestresponse
- HttpServletResponse
that represent the servlet responseIOException
Copyright © 2016 PayPal Open Source. All rights reserved.