org.paneris.jammyjoes.upload
Class WardenLauncher

java.lang.Object
  extended by org.paneris.jammyjoes.upload.WardenLauncher
All Implemented Interfaces:
javax.servlet.Servlet

public class WardenLauncher
extends java.lang.Object
implements javax.servlet.Servlet

This servlet launches a Warden thread. This will wait for 24 hours before uploading new files to ecentives


Constructor Summary
WardenLauncher()
           
 
Method Summary
 void destroy()
          Servlet cleanup Clean up our Warden.
 javax.servlet.ServletConfig getServletConfig()
           
 java.lang.String getServletInfo()
           
 void init(javax.servlet.ServletConfig config)
          Servlet initialisation
 void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp)
          Service the servlet's request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WardenLauncher

public WardenLauncher()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Servlet initialisation

Get parameters from the config file and launch a Warden thread

Specified by:
init in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException
See Also:
Warden

destroy

public void destroy()
Servlet cleanup Clean up our Warden. Its run method checks that it's own thread is the one pointed to by warden, so setting it to null means it exits

Specified by:
destroy in interface javax.servlet.Servlet

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Specified by:
getServletConfig in interface javax.servlet.Servlet

getServletInfo

public java.lang.String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet

service

public void service(javax.servlet.ServletRequest req,
                    javax.servlet.ServletResponse resp)
             throws javax.servlet.ServletException,
                    java.io.IOException
Service the servlet's request. This should always report that the thread is launched because the only way of stopping it is through this servlet's destroy method

Specified by:
service in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2001-2008 PanEris. All Rights Reserved.