org.barracudamvc.core.event.events
Class LongRunningEventGateway

java.lang.Object
  extended by org.barracudamvc.core.event.DefaultEventGateway
      extended by org.barracudamvc.core.event.events.LongRunningEventGateway
All Implemented Interfaces:
EventGateway

public class LongRunningEventGateway
extends DefaultEventGateway

Event handlers (both Controller and View) for the LongRunning events


Field Summary
static String CANCEL_LONG_RUNNING
           
static String CHECK_LONG_RUNNING
           
static int DEFAULT_ETA
           
static int DEFAULT_REFRESH_RATE
           
static Class DEFAULT_TEMPLATE
           
protected static List finishedUIDs
           
protected static org.apache.log4j.Logger logger
           
static String LONG_ID
           
static int LR_DEBUG
           
static int LR_PIPE_SIZE
           
static int LR_PIPE_TIMEOUT
           
static String PERCENT_COMPLETE
           
static String PERCENT_REMAINING
           
static String REFRESH_RATE
           
static String STATEMAP_VALUE
           
static String TIME_ELAPSED
           
static String TIME_ETA
           
static String TIME_REMAINING
           
static int UID_HISTORY
           
 
Constructor Summary
LongRunningEventGateway()
          Public constructor
 
Method Summary
static boolean isUIDActive(String uid)
           
static void markUIDAsComplete(String uid)
           
static void redirectBrowserToGetLongRunningResults(String lrid, javax.servlet.http.HttpServletResponse resp)
           
static void redirectBrowserToKickoffLongRunningRequest(String lrid, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, ViewCapabilities vc, String ourl, String oqstr, BaseEvent event)
           
static void showInactiveUIDResults(String lrid, javax.servlet.http.HttpServletResponse resp)
           
 
Methods inherited from class org.barracudamvc.core.event.DefaultEventGateway
add, deregister, deregisterLocalEventInterests, getChildren, getParent, print, printStackTrace, printStackTrace, register, registerLocalEventAliases, registerLocalEventInterests, remove, setParent, specifyLocalEventAliases, specifyLocalEventInterests, specifyLocalEventInterests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

DEFAULT_TEMPLATE

public static Class DEFAULT_TEMPLATE

DEFAULT_ETA

public static int DEFAULT_ETA

DEFAULT_REFRESH_RATE

public static int DEFAULT_REFRESH_RATE

LR_PIPE_SIZE

public static int LR_PIPE_SIZE

LR_PIPE_TIMEOUT

public static int LR_PIPE_TIMEOUT

LR_DEBUG

public static int LR_DEBUG

CHECK_LONG_RUNNING

public static final String CHECK_LONG_RUNNING
See Also:
Constant Field Values

CANCEL_LONG_RUNNING

public static final String CANCEL_LONG_RUNNING
See Also:
Constant Field Values

TIME_ETA

public static final String TIME_ETA
See Also:
Constant Field Values

TIME_ELAPSED

public static final String TIME_ELAPSED
See Also:
Constant Field Values

TIME_REMAINING

public static final String TIME_REMAINING
See Also:
Constant Field Values

PERCENT_COMPLETE

public static final String PERCENT_COMPLETE
See Also:
Constant Field Values

PERCENT_REMAINING

public static final String PERCENT_REMAINING
See Also:
Constant Field Values

STATEMAP_VALUE

public static final String STATEMAP_VALUE
See Also:
Constant Field Values

REFRESH_RATE

public static final String REFRESH_RATE
See Also:
Constant Field Values

LONG_ID

public static final String LONG_ID
See Also:
Constant Field Values

UID_HISTORY

public static int UID_HISTORY

finishedUIDs

protected static List finishedUIDs
Constructor Detail

LongRunningEventGateway

public LongRunningEventGateway()
Public constructor

Method Detail

redirectBrowserToKickoffLongRunningRequest

public static void redirectBrowserToKickoffLongRunningRequest(String lrid,
                                                              javax.servlet.http.HttpServletRequest req,
                                                              javax.servlet.http.HttpServletResponse resp,
                                                              ViewCapabilities vc,
                                                              String ourl,
                                                              String oqstr,
                                                              BaseEvent event)
                                                       throws IOException
Throws:
IOException

redirectBrowserToGetLongRunningResults

public static void redirectBrowserToGetLongRunningResults(String lrid,
                                                          javax.servlet.http.HttpServletResponse resp)
                                                   throws IOException
Throws:
IOException

showInactiveUIDResults

public static void showInactiveUIDResults(String lrid,
                                          javax.servlet.http.HttpServletResponse resp)
                                   throws IOException
Throws:
IOException

isUIDActive

public static boolean isUIDActive(String uid)

markUIDAsComplete

public static void markUIDAsComplete(String uid)


Copyright © 2006 BarracudaMVC.org All Rights Reserved.