Bees v0.5.0 API

bees.core
Class ProtocolBDomain

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

public final class ProtocolBDomain
extends java.lang.Object

The ProtocolBDomain is a BDomain root class used to start new protocol flows. XXX Unfortunately, its also a dumping ground for other functions. The createCapsuleTypes() junk should be moved elsewhere.


Constructor Summary
ProtocolBDomain()
           
 
Method Summary
static void main(java.lang.String[] args, ObjectTree capabilities)
          The BDomain main function, used to start a protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolBDomain

public ProtocolBDomain()
Method Detail

main

public static void main(java.lang.String[] args,
                        ObjectTree capabilities)
                 throws java.lang.Exception
The BDomain main function, used to start a protocol. This method will first try to retrieve a file capability using the name "flow-desc". If this capability is found, it is assumed to contain the flattened version of a flow tuple. If the capability is not found, a default tuple will be generated automatically. However, it will not contain any authorization data. Next, the primary Protocol named by the first argument is loaded and instantiated. Finally, an instance of the primary protocol's bootstrap capsule is created and evaluated. If the method is called with no arguments, it is assumed that the protocols will be created later using Coroutines. For example, the Node.register() method will use the LocalFlowCoroutine to initialize a protocol domain.
Parameters:
args - The arguments to the BDomain.
capabilities - The capabilities passed to the BDomain.

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/