org.codehaus.spice.netserve.connection.impl
Class AvalonAcceptorManager
java.lang.Object
org.codehaus.spice.netserve.connection.impl.DefaultAcceptorManager
org.codehaus.spice.netserve.connection.impl.AvalonAcceptorManager
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, SocketAcceptorManager
- public class AvalonAcceptorManager
- extends DefaultAcceptorManager
- implements org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable
An Avalon compliant implementation of AcceptorManager.
The component takes a single configuration parameter;
"shutdownTimeout". This specifies the amount of time to wait
while waiting for connections to shutdown gracefully. A
sample configuration follows;
<!-- wait 200ms for connections to gracefully shutdown -->
<shutdownTimeout>200</shutdownTimeout>
- Version:
- $Revision: 1.1 $ $Date: 2004/07/10 13:06:21 $
- Author:
- Peter Donald, Mauro Talevi
- See Also:
DefaultAcceptorManager
- Phoenix.service:
- type="org.codehaus.spice.netserve.connection.SocketAcceptorManager"
- Phoenix.component:
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
dispose()
Shutdown all connections. |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
|
void |
initialize()
Nothing to do to initial AcceptorManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvalonAcceptorManager
public AvalonAcceptorManager()
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
- Specified by:
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
initialize
public void initialize()
throws Exception
- Nothing to do to initial AcceptorManager.
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Throws:
Exception
dispose
public void dispose()
- Shutdown all connections.
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
Copyright © 1999-2004 Codehaus. All Rights Reserved.