Bees v0.5.0 API

bees.core.kernel
Class BDomainCoroutine

java.lang.Object
  |
  +--bees.core.Coroutine
        |
        +--bees.core.ResponderCoroutine
              |
              +--bees.core.kernel.BDomainCoroutine

public final class BDomainCoroutine
extends ResponderCoroutine

The kernel object that refers to the actual domain.


Field Summary
static int STATE_CONNECTED
           
static int STATE_CONNECTING
           
static int STATE_CREATED
           
 
Fields inherited from class bees.core.Coroutine
DEFAULT_TIMEOUT, INVALID_ID, STATE_ANY, STATE_COMPLETE, STATE_ERROR, STATE_ERROR_CAGED, STATE_ERROR_INTERNAL, STATE_ERROR_TIMEOUT, STATE_ERROR_USER, STATE_NEWBORN, STATE_USER
 
Constructor Summary
BDomainCoroutine()
          Construct an empty BDomainCoroutine.
 
Method Summary
 void addResponder(StateResponder sr)
           
 void connectToKernel(edu.utah.janosvm.kit.comm.amiga.FaxPort localPort, edu.utah.janosvm.kit.comm.commspace.CommSpaceHandle csh)
           
 void fillEvent(BDomainQueryEvent aqe)
           
 BDomainIdentifier getBDomainIdentifier()
           
 edu.utah.janosvm.kit.comm.amiga.FaxPortHandle getLocalPort()
           
 long getPeerID()
           
 PortPair getPortPair()
           
 edu.utah.janosvm.kit.comm.amiga.FaxPortHandle getRemotePort()
           
 long getStoreID()
           
 void handle(BeesEvent ae)
          Callback used to handle BeesEvents directed to this Coroutine.
 void initKernel(edu.utah.janosvm.kit.comm.amiga.FaxPort fp)
           
 void setLocalPort(edu.utah.janosvm.kit.comm.amiga.FaxPort port)
           
 void setPeerID(long peerID)
           
 void setRemotePort(edu.utah.janosvm.kit.comm.amiga.FaxPortHandle port)
           
protected  void setState(int newState)
          Set the state of the Coroutine and notify any waiting threads.
 void shutdown()
           
 java.lang.String toString()
           
 
Methods inherited from class bees.core.ResponderCoroutine
getResponder
 
Methods inherited from class bees.core.Coroutine
cleanup, drop, finalize, getCoroutine, getID, getState, getThrowable, setThrowable, waitForCompletion, waitForCompletion, waitForState, waitForState
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATE_CREATED

public static final int STATE_CREATED

STATE_CONNECTING

public static final int STATE_CONNECTING

STATE_CONNECTED

public static final int STATE_CONNECTED
Constructor Detail

BDomainCoroutine

public BDomainCoroutine()
Construct an empty BDomainCoroutine.
Method Detail

getBDomainIdentifier

public BDomainIdentifier getBDomainIdentifier()
Returns:
The unique identifier of the domain.

getPortPair

public PortPair getPortPair()

setLocalPort

public void setLocalPort(edu.utah.janosvm.kit.comm.amiga.FaxPort port)

getLocalPort

public edu.utah.janosvm.kit.comm.amiga.FaxPortHandle getLocalPort()

setRemotePort

public void setRemotePort(edu.utah.janosvm.kit.comm.amiga.FaxPortHandle port)

getRemotePort

public edu.utah.janosvm.kit.comm.amiga.FaxPortHandle getRemotePort()

setPeerID

public void setPeerID(long peerID)

getPeerID

public long getPeerID()

getStoreID

public long getStoreID()

addResponder

public void addResponder(StateResponder sr)

setState

protected void setState(int newState)
Description copied from class: Coroutine
Set the state of the Coroutine and notify any waiting threads. If the new state value is less than the current state it is ignored. If the new state value is an error or STATE_COMPLETE the Coroutine is disabled.
Overrides:
setState in class ResponderCoroutine
Following copied from class: bees.core.ResponderCoroutine
See Also:
Coroutine.setState(int)

fillEvent

public void fillEvent(BDomainQueryEvent aqe)

initKernel

public void initKernel(edu.utah.janosvm.kit.comm.amiga.FaxPort fp)

connectToKernel

public void connectToKernel(edu.utah.janosvm.kit.comm.amiga.FaxPort localPort,
                            edu.utah.janosvm.kit.comm.commspace.CommSpaceHandle csh)

shutdown

public void shutdown()

handle

public void handle(BeesEvent ae)
Description copied from class: Coroutine
Callback used to handle BeesEvents directed to this Coroutine.
Overrides:
handle in class Coroutine
Following copied from class: bees.core.Coroutine
Parameters:
ae - The BeesEvent to handle.

toString

public java.lang.String toString()
Overrides:
toString in class ResponderCoroutine
Following copied from class: bees.core.ResponderCoroutine
See Also:
Object.toString()

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/