JanosVM v1.0 API

java.lang.isolate
Class Isolate

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

public final class Isolate
extends java.lang.Object

Author:
Pat Tullmann

Constructor Summary
Isolate(java.lang.String mainClass, java.lang.String[] mainArgs)
           
Isolate(java.lang.String mainClass, java.lang.String[] mainArgs, java.util.prefs.TransientPreferences context, IsolateMessage stdin, IsolateMessage stdout, IsolateMessage stderr)
           
 
Method Summary
static Isolate currentIsolate()
           
static java.util.prefs.TransientPreferences currentIsolateContext()
           
static IsolateMessage[] currentIsolateIOBindings()
           
static IsolateMessage[] currentIsolateStartMessages()
          Retrieve the available IsolateMessage objects for the currently running isolate.
 boolean equals(java.lang.Object other)
           
 void exit(int status)
          Equivalent to this Isolate calling Runtime.exit() or System.exit.
protected  void finalize()
          Drop the ref count in the global status map when the Isolate handle is collected.
 void halt(int status)
           
 boolean hasExited()
           
 int hashCode()
          Returns the hashcode for this Isolate
 boolean hasStarted()
           
 boolean hasTerminated()
           
 Link newEventLink()
           
 void start(IsolateMessage[] messages)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Isolate

public Isolate(java.lang.String mainClass,
               java.lang.String[] mainArgs)
        throws IsolateStartupException

Isolate

public Isolate(java.lang.String mainClass,
               java.lang.String[] mainArgs,
               java.util.prefs.TransientPreferences context,
               IsolateMessage stdin,
               IsolateMessage stdout,
               IsolateMessage stderr)
        throws IsolateStartupException
Method Detail

start

public void start(IsolateMessage[] messages)
           throws java.lang.IllegalStateException,
                  IsolateStartupException

currentIsolateIOBindings

public static IsolateMessage[] currentIsolateIOBindings()

currentIsolateStartMessages

public static IsolateMessage[] currentIsolateStartMessages()
Retrieve the available IsolateMessage objects for the currently running isolate.

exit

public void exit(int status)
          throws java.lang.SecurityException,
                 java.lang.IllegalStateException
Equivalent to this Isolate calling Runtime.exit() or System.exit.
Parameters:
Termination - status. By convention, a nonzero status code indicates abnormal termination.
Throws:
java.lang.SecurityException - if security policy does not permit exiting this Isolate.
java.lang.IllegalStateException - if this isolate is terminated

halt

public void halt(int status)
          throws java.lang.SecurityException,
                 java.lang.IllegalStateException

newEventLink

public Link newEventLink()
                  throws ClosedLinkException

hasStarted

public boolean hasStarted()

hasExited

public boolean hasExited()

hasTerminated

public boolean hasTerminated()

currentIsolate

public static Isolate currentIsolate()

currentIsolateContext

public static java.util.prefs.TransientPreferences currentIsolateContext()

hashCode

public int hashCode()
Returns the hashcode for this Isolate
Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode

toString

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

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

finalize

protected void finalize()
Drop the ref count in the global status map when the Isolate handle is collected. If finalizer is invoked on a never-started isolate, then clean up the team.
Overrides:
finalize 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