public class ScriptRunnerServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Class and Description |
---|---|
private class |
ScriptRunnerServlet.ScriptHistory
The Class ScriptHistory.
|
private class |
ScriptRunnerServlet.ScriptTask
Private inner class to handle individual script execution
|
Modifier and Type | Field and Description |
---|---|
protected int |
count
The count.
|
protected java.util.Vector<ScriptRunnerServlet.ScriptHistory> |
history
The history.
|
protected static int |
HISTORY_SIZE
The Constant HISTORY_SIZE.
|
private int |
interval
The interval.
|
protected java.util.Date |
lastDate
The last date.
|
protected org.apache.log4j.Logger |
logger
The logger.
|
protected ScriptObject |
scriptObject
The script object.
|
protected java.text.SimpleDateFormat |
sdf
The sdf.
|
private static long |
serialVersionUID
The Constant serialVersionUID.
|
Constructor and Description |
---|
ScriptRunnerServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp)
Do get.
|
void |
init()
Set everything up - initialize variables and start the timer to execute on the period specified in
the properties file.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private int interval
protected org.apache.log4j.Logger logger
protected ScriptObject scriptObject
protected java.util.Date lastDate
protected java.text.SimpleDateFormat sdf
protected int count
protected java.util.Vector<ScriptRunnerServlet.ScriptHistory> history
protected static final int HISTORY_SIZE
public void init()
init
in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
doGet
in class javax.servlet.http.HttpServlet
req
- the HttpServletRequestrsp
- the HttpServletResponse