Bees v0.5.0 API

bees.core
Class Leak

java.lang.Object
  |
  +--bees.core.Leak

public final class Leak
extends java.lang.Object

The Leak class is used to leak package private methods to other system packages.


Method Summary
static edu.utah.janos.nodeos.BufferHandle getBuffer(ExternalCapsule ec)
           
static byte[] getFlowID(ProtocolSession ps)
          Get the flow identifier out of a ProtocolSession.
static ExternalCapsule toCapsule(ExternalCapsule ec, ExternalChannel source, ProtocolSession ps, edu.utah.janos.nodeos.BufferHandle bh)
          Initialize an ExternalCapsule from the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFlowID

public static byte[] getFlowID(ProtocolSession ps)
Get the flow identifier out of a ProtocolSession.
Parameters:
ps - An initialized ProtocolSession object.
Returns:
A byte array containing the flow identifier that the protocol belongs to.

getBuffer

public static edu.utah.janos.nodeos.BufferHandle getBuffer(ExternalCapsule ec)
Parameters:
ec - An initialized ExternalCapsule.
Returns:
The BufferHandle that holds the ExternalCapsule's payload.

toCapsule

public static ExternalCapsule toCapsule(ExternalCapsule ec,
                                        ExternalChannel source,
                                        ProtocolSession ps,
                                        edu.utah.janos.nodeos.BufferHandle bh)
Initialize an ExternalCapsule from the given arguments.
Parameters:
ec - The ExternalCapsule to initialize or null if one should be created.
source - The source of the ExternalCapsule.
ps - The ProtocolSession the capsule should be bound to.
bh - The BufferHandle containing the capsule's payload.
Returns:
The "ec" argument or the newly created object.

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/