Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class cornell.slk.jkernel.core.Capability

java.lang.Object
    |
    +----cornell.slk.jkernel.core.Capability
Subclasses:
SharedClass

public abstract class Capability
extends java.lang.Object
A J-Kernel capability is an object which may be shared with other tasks. Cross-task communication in the J-Kernel is done by making method invocations on capabilities.


Method Summary
static Capability  create(Remote obj)
Create a new capability, which may be passed to and used by other tasks.
void  revoke()
Revoke the capability.
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

revoke

public final void revoke() throws java.lang.SecurityException
Revoke the capability. The capability immediately becomes invalid, and no more invocations can be made through it. All attempted invocations on a revoked capability will cause a NullPointerException.

Only the task that created the capability can revoke the capability. If any other task attemps to revoke the capability, a SecurityException is thrown.

create

public static Capability create(Remote obj)
Create a new capability, which may be passed to and used by other tasks. The object returned by this method is a subclass of the class Capability, and it implements all of the remote classes that obj implements.

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS