org.codehaus.spice.netserve.connection.impl
Class DNAAcceptorManager

java.lang.Object
  extended byorg.codehaus.spice.netserve.connection.impl.DefaultAcceptorManager
      extended byorg.codehaus.spice.netserve.connection.impl.DNAAcceptorManager
All Implemented Interfaces:
org.codehaus.dna.Active, org.codehaus.dna.Configurable, org.codehaus.dna.LogEnabled, SocketAcceptorManager

public class DNAAcceptorManager
extends DefaultAcceptorManager
implements org.codehaus.dna.LogEnabled, org.codehaus.dna.Configurable, org.codehaus.dna.Active

A DNA 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.3 $ $Date: 2004/04/25 11:14:17 $
Author:
Peter Donald
See Also:
DefaultAcceptorManager

Constructor Summary
DNAAcceptorManager()
           
 
Method Summary
 void configure(org.codehaus.dna.Configuration configuration)
           
 void dispose()
          Shutdown all connections.
 void enableLogging(org.codehaus.dna.Logger logger)
           
 void initialize()
          Nothing to do to initial AcceptorManager.
 
Methods inherited from class org.codehaus.spice.netserve.connection.impl.DefaultAcceptorManager
connect, disconnect, getMonitor, getShutdownTimeout, isConnected, setMonitor, setShutdownTimeout, setSoTimeout, shutdownAcceptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNAAcceptorManager

public DNAAcceptorManager()
Method Detail

enableLogging

public void enableLogging(org.codehaus.dna.Logger logger)
Specified by:
enableLogging in interface org.codehaus.dna.LogEnabled

configure

public void configure(org.codehaus.dna.Configuration configuration)
               throws org.codehaus.dna.ConfigurationException
Specified by:
configure in interface org.codehaus.dna.Configurable
Throws:
org.codehaus.dna.ConfigurationException

initialize

public void initialize()
                throws Exception
Nothing to do to initial AcceptorManager.

Specified by:
initialize in interface org.codehaus.dna.Active
Throws:
Exception

dispose

public void dispose()
Shutdown all connections.

Specified by:
dispose in interface org.codehaus.dna.Active


Copyright © 1999-2004 Codehaus. All Rights Reserved.