org.jcrontab.web
Class loadCrontabServlet

java.lang.Object
  extended byHttpServlet
      extended byorg.jcrontab.web.loadCrontabServlet
Direct Known Subclasses:
loadCrontabServletCL

public class loadCrontabServlet
extends HttpServlet

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

Constructor Summary
loadCrontabServlet()
           
 
Method Summary
protected  java.io.InputStream createPropertiesStream(java.lang.String name)
           
 void destroy()
           
 void doStop()
           
 void init(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.
 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 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(ServletConfig config)
          throws ServletException
Refer to Servlet Javadoc This method is invoked by the Servlet container When the app-server starts.

Parameters:
config - The ServletConfig
Throws:
ServletException

createPropertiesStream

protected java.io.InputStream createPropertiesStream(java.lang.String name)
                                              throws java.io.IOException
Throws:
java.io.IOException

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 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()

doStop

public void doStop()