JanosVM v1.0 API

java.lang.isolate
Class Link

java.lang.Object
  |
  +--java.lang.isolate.Link

public abstract class Link
extends java.lang.Object


Constructor Summary
protected Link(java.lang.String typeName)
           
 
Method Summary
abstract  void close()
           
abstract  boolean isOpen()
           
abstract  boolean isReceiver(Isolate i)
           
abstract  boolean isSender(Isolate i)
           
static Link newEventLink(Isolate sender, Isolate receiver)
           
static Link newLink(Isolate sender, Isolate receiver)
           
 IsolateMessage receive()
          Blocking receive.
 void send(IsolateMessage x)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Link

protected Link(java.lang.String typeName)
Method Detail

newLink

public static Link newLink(Isolate sender,
                           Isolate receiver)
                    throws ClosedLinkException

newEventLink

public static Link newEventLink(Isolate sender,
                                Isolate receiver)
                         throws ClosedLinkException

isSender

public abstract boolean isSender(Isolate i)

isReceiver

public abstract boolean isReceiver(Isolate i)

close

public abstract void close()
                    throws java.lang.IllegalStateException

isOpen

public abstract boolean isOpen()
                        throws java.lang.IllegalStateException

send

public void send(IsolateMessage x)
          throws ClosedLinkException,
                 java.io.IOException

receive

public IsolateMessage receive()
                       throws ClosedLinkException
Blocking receive. Blocks until a recieve is completed (or an error or close occurs).

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

JanosVM v1.0 API

This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003