org.opencrx.kernel.workflow.servlet
Class WorkflowControllerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opencrx.kernel.workflow.servlet.WorkflowControllerServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class WorkflowControllerServlet
extends HttpServlet

The WorkflowControllerServlet periodically pings the configured URLs

See Also:
Serialized Form

Nested Class Summary
static class WorkflowControllerServlet.PingRate
           
 class WorkflowControllerServlet.WorkflowMonitor
           
 class WorkflowControllerServlet.WorkflowServletConfig
           
 
Field Summary
protected  ComponentConfiguration componentConfiguration
           
protected  boolean isStopped
           
protected  ConcurrentMap<String,WorkflowControllerServlet.WorkflowServletConfig> monitoredWorkflowServletConfigs
           
static String OPTION_AUTOSTART
           
static String OPTION_EXECUTION_PERIOD
           
static String OPTION_PINGRATE
           
static String OPTION_SERVER_URL
           
protected  String providerName
           
protected  Thread workflowMonitor
           
protected  ConcurrentMap<String,WorkflowControllerServlet.WorkflowServletConfig> workflowServletConfigs
           
 
Constructor Summary
WorkflowControllerServlet()
           
 
Method Summary
protected  void assertAndStartWorkflowMonitor()
           
protected  void doGet(HttpServletRequest req, HttpServletResponse res)
           
protected  void doPost(HttpServletRequest req, HttpServletResponse res)
           
 URL getWorkflowServletURL(String path)
           
protected  void handleRequest(HttpServletRequest req, HttpServletResponse res)
           
 void init(ServletConfig config)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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
 

Field Detail

OPTION_SERVER_URL

public static final String OPTION_SERVER_URL
See Also:
Constant Field Values

OPTION_AUTOSTART

public static final String OPTION_AUTOSTART
See Also:
Constant Field Values

OPTION_PINGRATE

public static final String OPTION_PINGRATE
See Also:
Constant Field Values

OPTION_EXECUTION_PERIOD

public static final String OPTION_EXECUTION_PERIOD
See Also:
Constant Field Values

providerName

protected String providerName

workflowServletConfigs

protected ConcurrentMap<String,WorkflowControllerServlet.WorkflowServletConfig> workflowServletConfigs

monitoredWorkflowServletConfigs

protected ConcurrentMap<String,WorkflowControllerServlet.WorkflowServletConfig> monitoredWorkflowServletConfigs

workflowMonitor

protected Thread workflowMonitor

isStopped

protected boolean isStopped

componentConfiguration

protected ComponentConfiguration componentConfiguration
Constructor Detail

WorkflowControllerServlet

public WorkflowControllerServlet()
Method Detail

assertAndStartWorkflowMonitor

protected void assertAndStartWorkflowMonitor()

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

getWorkflowServletURL

public URL getWorkflowServletURL(String path)
                          throws MalformedURLException
Throws:
MalformedURLException

handleRequest

protected void handleRequest(HttpServletRequest req,
                             HttpServletResponse res)
                      throws ServletException,
                             IOException
Throws:
ServletException
IOException

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse res)
              throws ServletException,
                     IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse res)
               throws ServletException,
                      IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.