public class ScriptRunnerServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Class and Description | 
|---|---|
| private class  | ScriptRunnerServlet.ScriptHistoryThe Class ScriptHistory. | 
| private class  | ScriptRunnerServlet.ScriptTaskPrivate inner class to handle individual script execution | 
| Modifier and Type | Field and Description | 
|---|---|
| protected int | countThe count. | 
| protected java.util.Vector<ScriptRunnerServlet.ScriptHistory> | historyThe history. | 
| protected static int | HISTORY_SIZEThe Constant HISTORY_SIZE. | 
| private int | intervalThe interval. | 
| protected java.util.Date | lastDateThe last date. | 
| protected org.apache.log4j.Logger | loggerThe logger. | 
| protected ScriptObject | scriptObjectThe script object. | 
| protected java.text.SimpleDateFormat | sdfThe sdf. | 
| private static long | serialVersionUIDThe 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, serviceprivate 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.GenericServletpublic void doGet(javax.servlet.http.HttpServletRequest req,
         javax.servlet.http.HttpServletResponse rsp)
doGet in class javax.servlet.http.HttpServletreq - the HttpServletRequestrsp - the HttpServletResponse