org.jcrontab.web
Class loadCrontabServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.jcrontab.web.loadCrontabServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class loadCrontabServlet
extends javax.servlet.http.HttpServlet

Version:
$Revision: 1.25 $
Author:
$Author: iolalla $
See Also:
Serialized Form

Constructor Summary
loadCrontabServlet()
           
 
Method Summary
 void destroy()
           
static void doStop()
           
 void init(javax.servlet.ServletConfig config)
          Refer to Servlet Javadoc This method is invoked by the Servlet container When the app-server starts.
 void process()
          This method starts the Crontab and lets the system Continue without wasting more resources.
static void ShutdownHook()
          This method seths a ShutdownHook to the system This traps the CTRL+C or kill signal and shutdows Correctly the system.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

loadCrontabServlet

public loadCrontabServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Refer to Servlet Javadoc This method is invoked by the Servlet container When the app-server starts.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - The ServletConfig
javax.servlet.ServletException

process

public void process()
This method starts the Crontab and lets the system Continue without wasting more resources. This method can receive the config File as a variable in web.xml


ShutdownHook

public static void ShutdownHook()
                         throws java.lang.Exception
This method seths a ShutdownHook to the system This traps the CTRL+C or kill signal and shutdows Correctly the system.

Throws:
java.lang.Exception

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

doStop

public static void doStop()