Class WaitForBackgroundThreadsController

  • All Implemented Interfaces:
    MultipartRequestWrapper.ParsingStrategy, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @WebServlet(name="WaitForBackgroundThreads",
                urlPatterns="/admin/wait")
    public class WaitForBackgroundThreadsController
    extends VitroHttpServlet
    Wait for background threads to complete. Used in Selenium testing. This servlet will poll background threads (instances of VitroBackgroundThread) until all living threads are idle, or until a maximum wait time has been met. The wait time can be specified with a "waitLimit" parameter on the request (in seconds), or the default value will be used. If the maximum time expires before all threads become idle, the result will be 503 (Service Unavailable) Else if a "return" parameter exists, and a "referer" header exists, the result will be a 307 (Temporary Redirect) back to the referer URL. Otherwise, the result will be 200 (OK), with a brief message.
    See Also:
    Serialized Form
    • Constructor Detail

      • WaitForBackgroundThreadsController

        public WaitForBackgroundThreadsController()
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse resp)
                   throws IOException,
                          javax.servlet.ServletException
        Description copied from class: VitroHttpServlet
        doGet does nothing.
        Overrides:
        doGet in class VitroHttpServlet
        Throws:
        IOException
        javax.servlet.ServletException