bees.core.kernel
Class ConnectBDomainCoroutine
java.lang.Object
|
+--bees.core.Coroutine
|
+--bees.core.ResponderCoroutine
|
+--bees.core.kernel.ConnectBDomainCoroutine
- public final class ConnectBDomainCoroutine
- extends ResponderCoroutine
Coroutine used to transform a domain identifier into a usable port for
sending events.
Field Summary |
static int |
STATE_WAITING
State used when waiting for a reply. |
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 |
Method Summary |
void |
connect(BDomainCoroutine sc,
byte[] id)
Connect to the domain with the given identifier. |
edu.utah.janosvm.kit.comm.amiga.FaxPortHandle |
getPort()
|
void |
handle(BeesEvent ae)
Callback used to handle BeesEvents directed to this Coroutine. |
java.lang.String |
toString()
|
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 |
STATE_WAITING
public static final int STATE_WAITING
- State used when waiting for a reply.
ConnectBDomainCoroutine
public ConnectBDomainCoroutine(StateResponder sr)
- Construct a ConnectBDomainCoroutine with the given parameters.
- Parameters:
sr
- A StateResponder object that should be executed on any state
transitions.
ConnectBDomainCoroutine
public ConnectBDomainCoroutine()
- Construct an empty ConnectBDomainCoroutine.
getPort
public edu.utah.janosvm.kit.comm.amiga.FaxPortHandle getPort()
- Returns:
- The port connected to the domain or NULL if the connection failed.
connect
public void connect(BDomainCoroutine sc,
byte[] id)
- Connect to the domain with the given identifier.
- Parameters:
sc
- The current domain's coroutine.id
- The identifier of the domain whose port should be retrieved.
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()
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/