public final void start() throws Exception { synchronized (_lock) { try { if (_state == STARTED || _state == STARTING) return; setStarting(); doStart(); Log.debug("started {}",this); setStarted(); } catch (Exception e) { Log.warn("failed " + this,e); setFailed(e); throw e; } catch (Error e) { Log.warn("failed " + this,e); setFailed(e); throw e; } } }
public final void stop() throws Exception { synchronized (_lock) { try { if (_state == STOPPING || _state == STOPPED) return; setStopping(); doStop(); Log.debug("stopped {}",this); setStopped(); } catch (Exception e) { Log.warn("failed " + this,e); setFailed(e); throw e; } catch (Error e) { Log.warn("failed " + this,e); setFailed(e); throw e; } } }
protected void doStart() throws Exception { _selectSet = new SelectSet[_selectSets]; for (int i=0;i<_selectSet.length;i++) _selectSet[i]= new SelectSet(i); super.doStart(); }
protected void doStart() throws Exception { super.doStart(); if (_headerBuffers!=null) _headerBuffers.clear(); else _headerBuffers=new ArrayList(); if (_requestBuffers!=null) _requestBuffers.clear(); else _requestBuffers=new ArrayList(); if (_responseBuffers!=null) _responseBuffers.clear(); else _responseBuffers=new ArrayList(); }
/** * @see org.mortbay.component.AbstractLifeCycle#doStop() */ protected void doStop() throws Exception { super.doStop(); if (_scanner!=null) _scanner.stop(); _scanner=null; }
protected void doStop() throws Exception { SelectSet[] sets= _selectSet; _selectSet=null; if (sets!=null) for (int i=0;i<sets.length;i++) sets[i].stop(); super.doStop(); }
/** * @see org.mortbay.component.AbstractLifeCycle#doStop() */ protected void doStop() throws Exception { super.doStop(); if (_scanner!=null) _scanner.stop(); _scanner=null; }
super.doStart(); if (_scanner!=null) _scanner.stop();
public void doStop() throws Exception { super.doStop(); invalidateSessions(); _loader=null; }
super.doStart(); if (_scanner!=null) _scanner.stop();
protected void doStop() throws Exception { super.doStop(); try {if (_writer != null) _writer.flush();} catch (IOException e) {Log.ignore(e);} if (_out != null && _closeOut) try {_out.close();} catch (IOException e) {Log.ignore(e);} _out = null; _fileOut = null; _closeOut = false; _logDateCache = null; _writer = null; }