JNodeOS v1.2.0 API

edu.utah.janos.nodeos
Class InChannel

java.lang.Object
  |
  +--edu.utah.janos.nodeos.pj_InChannel
        |
        +--edu.utah.janos.nodeos.InChannel

public final class InChannel
extends edu.utah.janos.nodeos.pj_InChannel

Java wrapper for a NodeOS InChannel.

Author:
Janos Ministry of Development
See Also:
CutThroughChannel, OutChannel

Method Summary
 void addBuffer(BufferHandle bufh)
          Add a buffer to the InChannel
 void addBuffers(int count)
          Add `count' buffers to the in channel.
static InChannel create(Flow flow, DemultiplexKey classifier, java.lang.String protocolSpec, java.lang.String addrSpec, DeliverFunc deliverFunc)
          XXX flow parameter is silly.
static InChannel create(Flow flow, ThreadPoolSpec tps, DemultiplexKey classifier, java.lang.String protocolSpec, java.lang.String addrSpec, DeliverFunc deliverFunc)
          Create a new InChannel.
protected  void finalize()
           
 void getStats(ChanStats cs)
           
 BufferHandle remBuffer()
          Remove a buffer from the queue of free buffers on this InChannel.
 void remBuffers(int count)
          Remove `count' buffers from the channel.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static InChannel create(Flow flow,
                               ThreadPoolSpec tps,
                               DemultiplexKey classifier,
                               java.lang.String protocolSpec,
                               java.lang.String addrSpec,
                               DeliverFunc deliverFunc)
                        throws java.io.IOException,
                               PacketAddressFormatException,
                               ProtocolSpecFormatException
Create a new InChannel.

create

public static InChannel create(Flow flow,
                               DemultiplexKey classifier,
                               java.lang.String protocolSpec,
                               java.lang.String addrSpec,
                               DeliverFunc deliverFunc)
                        throws java.io.IOException,
                               PacketAddressFormatException,
                               ProtocolSpecFormatException
XXX flow parameter is silly.

addBuffer

public void addBuffer(BufferHandle bufh)
Add a buffer to the InChannel

remBuffer

public BufferHandle remBuffer()
Remove a buffer from the queue of free buffers on this InChannel. Returns null if there are no free buffers on this InChannel.

addBuffers

public void addBuffers(int count)
Add `count' buffers to the in channel.

remBuffers

public void remBuffers(int count)
Remove `count' buffers from the channel. Or all the buffers if there are less than `count'.

getStats

public void getStats(ChanStats cs)
Parameters:
cs - The object to place the channel stats in.

toString

public java.lang.String toString()
Overrides:
toString in class edu.utah.janos.nodeos.pj_InChannel

finalize

protected void finalize()
Overrides:
finalize in class edu.utah.janos.nodeos.pj_InChannel

JNodeOS v1.2.0 API

This documentation is Copyright (C) 1998-2002 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project web site: http://www.cs.utah.edu/flux/janos/
Generated on Mar 17, 2002