All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.nodeos.pj_OutChannel
java.lang.Object
   |
   +----edu.utah.janos.nodeos.pj_ProtocolLayer.PacketGenerator
           |
           +----edu.utah.janos.nodeos.pj_OutChannel

  Summary

class  pj_OutChannel
     extends edu.utah.janos.nodeos.pj_ProtocolLayer.PacketGenerator
{
          // Fields 4
     private pj_BufferHandle bufferQ;
     private final Object bufferQLock;
     final pj_Flow flow;
     pj_ProtocolLayer protocolLayer;

          // Constructors 1
     pj_OutChannel(pj_Flow, String, String) throws IOException, PacketAddressFormatException, ProtocolSpecFormatException;

          // Methods 8
     void destroy();
     pj_BufferHandle generate();
     void queueAsyncPacket(pj_BufferHandle);
     void send(pj_BufferHandle);
     void sendAndRecycle(pj_BufferHandle, pj_InChannel);
     void sendAsynch(pj_BufferHandle, DeliverFunc);
     void sendv(pj_BufferHandle[]);
     public String toString();
}

Java wrapper for an OutChannel.

See Also: CutThroughChannel, InChannel, OutChannel


  Cross Reference

Extended By:
OutChannel





  Fields

· bufferQ

Summary  |  Top
   private pj_BufferHandle bufferQ

Queue of buffers waiting to be sent. Only used for asynchronous sends (which actually aren't implemented yet!)


· bufferQLock

Summary  |  Top
   private final Object bufferQLock

Lock for the bufferQ


· flow

Summary  |  Top
   final pj_Flow flow


· protocolLayer

Summary  |  Top
   pj_ProtocolLayer protocolLayer


  Constructors

· pj_OutChannel

Summary  |  Top

   pj_OutChannel(pj_Flow flow, 
                 String protocolSpec, 
                 String addressSpec)  throws IOException, PacketAddressFormatException, ProtocolSpecFormatException


  Methods

· generate

Summary  |  Top
   pj_BufferHandle generate() 

Packet generator function defined by ProtocolLayer.PacketGenerator.

Overrides:
generate in class pj_ProtocolLayer.PacketGenerator


· queueAsyncPacket

Summary  |  Top
   void queueAsyncPacket(pj_BufferHandle pb) 

Queue a packet for sending whenever convenient. XXX needs callback function



· send

Summary  |  Top
   void send(pj_BufferHandle bh) 

Send a single buffer. Synchronous (blocks until send is "done".



· sendAndRecycle

Summary  |  Top
   void sendAndRecycle(pj_BufferHandle bh, 
                       pj_InChannel inChan) 

Send a single buffer. Synchronous. Puts the buffer on the specified inChan after the send.



· sendAsynch

Summary  |  Top
   void sendAsynch(pj_BufferHandle bh, 
                   DeliverFunc callback) 

Queue a packet for sending on this OutChannel. callback will be invoked when the call is complete.

XXX doesn't work yet.

XXX need to reconcile with synchronous sends.



· sendv

Summary  |  Top
   void sendv(pj_BufferHandle[] bhl) 

Send an array of buffer handles.



· destroy

Summary  |  Top
   void destroy() 


· toString

Summary  |  Top
   public String toString() 
Overrides:
toString in class pj_ProtocolLayer.PacketGenerator


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7