public class RunRetriever extends HttpServlet
Constructor and Description |
---|
RunRetriever() |
Modifier and Type | Method and Description |
---|---|
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Post method to retrieve a run for a remote queue.
|
static File |
jar(Run run)
Jars up the run directory.
|
static File |
pollRun(long localAge)
Client side method to poll for the oldest run which must be older than
localAge.
|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
request
- The servlet requestresponse
- The servlet responseServletException
- If there is an error in the servletIOException
- If the servlet has an I/O errorpublic static File jar(Run run) throws IOException
run
- The run to jar upIOException
- Error creating the jarpublic static File pollRun(long localAge)
localAge
- The age of the oldest local run in the queue