org.apache.geronimo.network.protocol
Class CountingProtocol

java.lang.Object
  extended byorg.apache.geronimo.network.protocol.AbstractProtocol
      extended byorg.apache.geronimo.network.protocol.CountingProtocol
All Implemented Interfaces:
BootstrapCook, Cloneable, Protocol, Serializable

public class CountingProtocol
extends AbstractProtocol
implements BootstrapCook

Version:
$Revision: 1.4 $ $Date: 2004/08/01 13:03:42 $
See Also:
Serialized Form

Constructor Summary
CountingProtocol()
           
 
Method Summary
 Collection cook(ControlContext context)
           
 void drain()
           
 void flush()
           
 long getDownCount()
           
 long getUpCount()
           
 void sendDown(DownPacket packet)
           
 void sendUp(UpPacket packet)
           
 void setup()
           
 void teardown()
           
 
Methods inherited from class org.apache.geronimo.network.protocol.AbstractProtocol
clearLinks, cloneProtocol, getDownProtocol, getUpProtocol, setDownProtocol, setUpProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingProtocol

public CountingProtocol()
Method Detail

getUpCount

public long getUpCount()

getDownCount

public long getDownCount()

setup

public void setup()
           throws ProtocolException
Specified by:
setup in interface Protocol
Throws:
ProtocolException

drain

public void drain()
           throws ProtocolException
Specified by:
drain in interface Protocol
Throws:
ProtocolException

teardown

public void teardown()
              throws ProtocolException
Specified by:
teardown in interface Protocol
Throws:
ProtocolException

sendUp

public void sendUp(UpPacket packet)
            throws ProtocolException
Specified by:
sendUp in interface Protocol
Throws:
ProtocolException

sendDown

public void sendDown(DownPacket packet)
              throws ProtocolException
Specified by:
sendDown in interface Protocol
Throws:
ProtocolException

flush

public void flush()
           throws ProtocolException
Specified by:
flush in interface Protocol
Throws:
ProtocolException

cook

public Collection cook(ControlContext context)
Specified by:
cook in interface BootstrapCook


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