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