Class WaitForBackgroundThreadsController
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.admin.WaitForBackgroundThreadsController
-
- All Implemented Interfaces:
MultipartRequestWrapper.ParsingStrategy,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(name="WaitForBackgroundThreads", urlPatterns="/admin/wait") public class WaitForBackgroundThreadsController extends VitroHttpServletWait 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
VitroHttpServlet.PickListSorter
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
HTML_MIMETYPE, JSON_LD_MIMETYPE, JSON_MIMETYPE, N3_MIMETYPE, publicDateFormat, RDFXML_MIMETYPE, TTL_MIMETYPE, XHTML_MIMETYPE
-
-
Constructor Summary
Constructors Constructor Description WaitForBackgroundThreadsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)doGet does nothing.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
doPost, dumpRequestParameters, isAuthorizedToDisplayPage, maximumMultipartFileSize, redirectToInsufficientAuthorizationPage, redirectToLoginPage, redirectUnauthorizedRequest, service, sortForPickList, stashFileSizeException
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException, javax.servlet.ServletExceptionDescription copied from class:VitroHttpServletdoGet does nothing.- Overrides:
doGetin classVitroHttpServlet- Throws:
IOExceptionjavax.servlet.ServletException
-
-