org.jcrontab.web
Class loadCrontabServlet
java.lang.Object
HttpServlet
org.jcrontab.web.loadCrontabServlet
- Direct Known Subclasses:
- loadCrontabServletCL
- public class loadCrontabServlet
- extends HttpServlet
- Version:
- $Revision: 1.27 $
- Author:
- $Author: iolalla $
- See Also:
- Serialized Form
Method Summary |
protected InputStream |
createPropertiesStream(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 |
loadCrontabServlet
public loadCrontabServlet()
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 InputStream createPropertiesStream(String name)
throws IOException
- Throws:
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 Exception
- This method seths a ShutdownHook to the system
This traps the CTRL+C or kill signal and shutdows
Correctly the system.
- Throws:
Exception
destroy
public void destroy()
doStop
public void doStop()