public class GridStatistics
extends org.openqa.grid.web.servlet.RegistryBasedServlet
GridStatistics servlet displays the current load on the Grid per browser, i.e., the number of requests
waiting on the queue for a browser and the maximum instances of that browser. The servlet responds only to client
using accept header for all media types and accept header of type application/json. This servlet should be injected
into the Grid. This servlet requires the remote proxies to update the BrowserInformationCache
upon initialization. Any SeLionRemoteProxy performs this required update.cURL clients Sample requests curl -s http://: /grid/admin/GridStatistics curl -s -X GET http:// : /grid/admin/GridStatistics curl -s -H "Accept: application/json" -X GET http:// : /grid/admin/GridStatistics Browser clients Go to the URL http:// : /grid/admin/GridStatistics Sample response [{ "browserName": "chrome", "statistics": { "waitingRequests": 2, "maxBrowserInstances": 10 } }, { "browserName": "firefox", "statistics": { "waitingRequests": 3, "maxBrowserInstances": 15 } }, { "browserName": "internet explorer", "statistics": { "waitingRequests": 0, "maxBrowserInstances": 1 } }]
| Constructor and Description |
|---|
GridStatistics() |
GridStatistics(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 gets a list of
BrowserStatisticsCollection.BrowserStatistics and returns over HTTP as a json document |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic GridStatistics()
public GridStatistics(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.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
BrowserStatisticsCollection.BrowserStatistics and returns over HTTP as a json documentrequest - HttpServletRequest that represents the servlet requestresponse - HttpServletResponse that represents the servlet responseIOExceptionCopyright © 2016 PayPal Open Source. All rights reserved.