bees.core
Class EventChannel
java.lang.Object
|
+--bees.core.Capability
|
+--bees.core.EventChannel
- All Implemented Interfaces:
- edu.utah.janosvm.kit.comm.jsi.JSIHandler
- public final class EventChannel
- extends Capability
- implements edu.utah.janosvm.kit.comm.jsi.JSIHandler
An EventChannel is used to send events to another domain in the system.
Constructor Summary |
EventChannel()
Construct an empty EventChannel. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sub
public static final edu.utah.janosvm.kit.comm.jsi.JSIHandlerRoot sub
NULL_CHANNEL
public static final EventChannel NULL_CHANNEL
DEFAULT_PERMISSIONS
public static final PermissionSet DEFAULT_PERMISSIONS
EventChannel
public EventChannel()
- Construct an empty EventChannel.
setCurrentChannel
public static void setCurrentChannel()
currentChannel
public static EventChannel currentChannel()
threadChannel
public static EventChannel threadChannel()
fromBytes
protected final void fromBytes(byte[] flattened)
throws java.lang.Exception
- Description copied from class:
Capability
- Bind this capability to the given object.
- Overrides:
fromBytes
in class Capability
- Following copied from class:
bees.core.Capability
- Parameters:
flattened
- The object this capability gives access too.- Throws:
java.lang.Exception
- if anything goes wrong during initialization.
revoke
public void revoke()
- Description copied from class:
Capability
- Revoke access to the capability.
- Overrides:
revoke
in class Capability
waitForDeath
public void waitForDeath()
sendEvent
public void sendEvent(BeesEvent ae)
throws DeadBDomainException
resolveSpecifier
public edu.utah.janosvm.kit.comm.jsi.JSIHandler resolveSpecifier(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm,
edu.utah.janosvm.kit.comm.jsi.JSIPair jp)
throws java.lang.Throwable
- Specified by:
resolveSpecifier
in interface edu.utah.janosvm.kit.comm.jsi.JSIHandler
handleMessage
public void handleMessage(edu.utah.janosvm.kit.comm.jsi.JSIHandlerContext jhc,
edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
- Specified by:
handleMessage
in interface edu.utah.janosvm.kit.comm.jsi.JSIHandler
getSuites
public void getSuites(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
- Specified by:
getSuites
in interface edu.utah.janosvm.kit.comm.jsi.JSIHandler
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class Capability
- Following copied from class:
bees.core.Capability
- See Also:
Object.equals(Object)
toString
public java.lang.String toString()
- Overrides:
toString
in class Capability
- Following copied from class:
bees.core.Capability
- 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/