Bees v0.5.0 API

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.


Field Summary
static PermissionSet DEFAULT_PERMISSIONS
           
static EventChannel NULL_CHANNEL
           
static edu.utah.janosvm.kit.comm.jsi.JSIHandlerRoot sub
           
 
Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Constructor Summary
EventChannel()
          Construct an empty EventChannel.
 
Method Summary
static EventChannel currentChannel()
           
 boolean equals(java.lang.Object obj)
           
protected  void fromBytes(byte[] flattened)
          Bind this capability to the given object.
 void getSuites(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
           
 void handleMessage(edu.utah.janosvm.kit.comm.jsi.JSIHandlerContext jhc, edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
           
 edu.utah.janosvm.kit.comm.jsi.JSIHandler resolveSpecifier(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm, edu.utah.janosvm.kit.comm.jsi.JSIPair jp)
           
 void revoke()
          Revoke access to the capability.
 void sendEvent(BeesEvent ae)
           
static void setCurrentChannel()
           
static EventChannel threadChannel()
           
 java.lang.String toString()
           
 void waitForDeath()
           
 
Methods inherited from class bees.core.Capability
checkPermission, clear, clonePermission, deleteCapability, fromBytes, revokedPermission, revokePermission, revokePermissions, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

EventChannel

public EventChannel()
Construct an empty EventChannel.
Method Detail

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()

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/