|
1 |
| package org.codehaus.spice.netserve.connection.impl; |
|
2 |
| |
|
3 |
| import org.apache.avalon.framework.activity.Disposable; |
|
4 |
| import org.apache.avalon.framework.activity.Initializable; |
|
5 |
| import org.apache.avalon.framework.configuration.Configurable; |
|
6 |
| import org.apache.avalon.framework.configuration.Configuration; |
|
7 |
| import org.apache.avalon.framework.configuration.ConfigurationException; |
|
8 |
| import org.apache.avalon.framework.logger.LogEnabled; |
|
9 |
| import org.apache.avalon.framework.logger.Logger; |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| |
|
25 |
| |
|
26 |
| |
|
27 |
| |
|
28 |
| |
|
29 |
| |
|
30 |
| public class AvalonAcceptorManager |
|
31 |
| extends DefaultAcceptorManager |
|
32 |
| implements LogEnabled, Configurable, Initializable, Disposable |
|
33 |
| { |
|
34 |
| |
|
35 |
| |
|
36 |
| |
|
37 |
3
| public void enableLogging( final Logger logger )
|
|
38 |
| { |
|
39 |
3
| setMonitor( new AvalonAcceptorMonitor( logger ) );
|
|
40 |
| } |
|
41 |
| |
|
42 |
| |
|
43 |
| |
|
44 |
| |
|
45 |
| |
|
46 |
3
| public void configure( final Configuration configuration )
|
|
47 |
| throws ConfigurationException |
|
48 |
| { |
|
49 |
3
| setShutdownTimeout( configuration.getChild( "shutdownTimeout" ).getValueAsInteger( 0 ) );
|
|
50 |
| } |
|
51 |
| |
|
52 |
| |
|
53 |
| |
|
54 |
| |
|
55 |
3
| public void initialize()
|
|
56 |
| throws Exception |
|
57 |
| { |
|
58 |
| } |
|
59 |
| |
|
60 |
| |
|
61 |
| |
|
62 |
| |
|
63 |
3
| public void dispose()
|
|
64 |
| { |
|
65 |
3
| shutdownAcceptors();
|
|
66 |
| } |
|
67 |
| } |