1 37 38 39 40 41 42 package com.lutris.appserver.debugger; 43 44 45 import com.lutris.util.*; 46 47 import com.lutris.util.Config; 48 import com.lutris.appserver.server.*; 49 import com.lutris.appserver.server.httpPresentation.*; 50 51 52 import com.lutris.appserver.debugger.spec.*; 53 import java.io.IOException ; 54 55 56 57 58 public class Debugger extends StandardApplication { 59 60 68 public void startup(Config appConfig) 69 throws ApplicationException { 70 71 74 int debugQueueSize = 64; 75 try { 76 debugQueueSize = appConfig.getInt("Debugger.DebugQueueSize"); 77 } catch (ConfigException except) { 78 throw new ApplicationException("No parameter " + 79 "Debugger.DebugQueueSize specified"); 80 } 81 if (debugQueueSize < 1) 82 throw new ApplicationException("Debugger.DebugQueueSize must " + 83 "be at least 1."); 84 87 boolean saveResponseData = false; 88 try { 89 saveResponseData = appConfig.getBoolean("Debugger.SaveResponseData"); 90 } catch (ConfigException except) { 91 } 93 try{ 94 ServletMonitor sm=ServletMonitorFactory.getServletMonitor("com.lutris.appserver.debugger.business.ServletMonitorImpl"); 95 sm.initialize(debugQueueSize, saveResponseData, this.getName()); 96 97 }catch(Exception e){} 98 super.startup(appConfig); 99 100 } 101 102 103 public synchronized void shutdown() { 104 ServletMonitor sm=ServletMonitorFactory.getServletMonitor("com.lutris.appserver.debugger.business.ServletMonitorImpl"); 105 sm.shutdown(); 106 107 super.shutdown(); 108 } 109 110 111 112 public boolean requestPreprocessor(HttpPresentationComms comms) 113 throws Exception { 114 super.requestPreprocessor(comms); 115 118 return false; 119 } 120 121 122 123 124 125 126 127 } 128 | Popular Tags |