org.apache.geronimo.network.protocol
Class ProtocolFactory

java.lang.Object
  extended byorg.apache.geronimo.network.protocol.ProtocolFactory
All Implemented Interfaces:
ServerSocketAcceptorListener

public class ProtocolFactory
extends Object
implements ServerSocketAcceptorListener

Version:
$Revision: 1.8 $ $Date: 2004/08/01 03:52:20 $

Nested Class Summary
static interface ProtocolFactory.AcceptedCallBack
          When the AcceptableProtocol template is cloned and just before to be set-up with the SocketChannel being accepted, the following call-back is performed.
 
Constructor Summary
ProtocolFactory()
           
 
Method Summary
 void accept(SocketChannel socketChannel)
           
 void drain()
           
 ProtocolFactory.AcceptedCallBack getAcceptedCallBack()
           
 org.apache.geronimo.pool.ClockPool getClockPool()
           
 long getMaxAge()
           
 long getMaxInactivity()
           
 long getReclaimPeriod()
           
 AcceptableProtocol getTemplate()
           
 void setAcceptedCallBack(ProtocolFactory.AcceptedCallBack aCallBack)
           
 void setClockPool(org.apache.geronimo.pool.ClockPool clockPool)
           
 void setMaxAge(long maxAge)
           
 void setMaxInactivity(long maxInactivity)
           
 void setReclaimPeriod(long reclaimPeriod)
           
 void setTemplate(AcceptableProtocol template)
           
 void startup()
           
 void teardown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolFactory

public ProtocolFactory()
Method Detail

getAcceptedCallBack

public ProtocolFactory.AcceptedCallBack getAcceptedCallBack()

setAcceptedCallBack

public void setAcceptedCallBack(ProtocolFactory.AcceptedCallBack aCallBack)

getTemplate

public AcceptableProtocol getTemplate()

setTemplate

public void setTemplate(AcceptableProtocol template)

getClockPool

public org.apache.geronimo.pool.ClockPool getClockPool()

setClockPool

public void setClockPool(org.apache.geronimo.pool.ClockPool clockPool)

getReclaimPeriod

public long getReclaimPeriod()

setReclaimPeriod

public void setReclaimPeriod(long reclaimPeriod)

getMaxAge

public long getMaxAge()

setMaxAge

public void setMaxAge(long maxAge)

getMaxInactivity

public long getMaxInactivity()

setMaxInactivity

public void setMaxInactivity(long maxInactivity)

accept

public void accept(SocketChannel socketChannel)
Specified by:
accept in interface ServerSocketAcceptorListener

startup

public void startup()
             throws Exception
Throws:
Exception

drain

public void drain()
           throws Exception
Throws:
Exception

teardown

public void teardown()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.