All Packages  This Package  Class Hierarchy  Class Search  Index

Class utah.npm.core.Space
java.lang.Object
   |
   +----Refable
           |
           +----utah.npm.core.Space

  Summary

public final class  Space
     extends Refable
{
          // Constructors 2
     public Space(Reference, MemPool);
     public Space(Reference, MemPool, int);

          // Methods 5
     public static void currentSpaceKeeperPort(Reference);
     public static void currentSpaceMemPool(Reference);

     public synchronized void destroy();
     public void startMain(String, String, String[]) throws Insanity;
     public String toString();
}

Provide a virtual VM for Java applications to run in. The Space is the hook on which all of the resources for an application hang. Each thread in the system is associated with a Space. Each Space has a MemPool for its memory allocation. Each space has an (implied) namespace with fault handlers. TODO: Move the namespace stuff out of this class into a separate class Rename to Process

Version:
NPMJava 0.5.0 April, 1998
Author:
Patrick Tullmann tullmann@cs.utah.edu




  Constructors

· Space

Summary  |  Top

   public Space(Reference keeperPort, 
                MemPool memPool) 

Create a new Space object with the provided KeeperPort reference and the provided MemPool.

Parameter Description
keeperPort a reference to a port to send Space-related requests to.
memPool the MemPool object to link this Space to.



· Space

Summary  |  Top
   public Space(Reference keeperPort, 
                MemPool memPool, 
                int hashCode) 

Create a new Space object with the provided KeeperPort reference and the provided MemPool. Give the new space the provided hash code.

Parameter Description
keeperPort a reference to a port to send Space-related requests to.
memPool the MemPool object to link this Space to.
hashCode the hash code to give this Space.



  Methods

· currentSpaceKeeperPort

Summary  |  Top
   public static void currentSpaceKeeperPort(Reference out_ref) 

Return the Keeper Port reference for the current space object. TODO: rename to currentSpaceKeeperPort()

Parameter Description
out_ref The reference to fill in with the keeper port info.



· currentSpaceMemPool

Summary  |  Top
   public static void currentSpaceMemPool(Reference out_ref) 

Return the current Space's mem pool.

Parameter Description
out_ref The reference to point to the MemPool.



· startMain

Summary  |  Top
   public void startMain(String threadName, 
                         String initialObj, 
                         String[] initialArgs)  throws Insanity

Fire up the initial thread in this space. The thread is started up executing the Main method of the given initial object with the given vector of arguments (exactly like the object name on the command line of the VM.)

Parameter Description
threadName the name of the first thread to start in the space.
initialObj the name of the initial object to load and invoke the main method on.
initialArgs the initial arguments to the main method of initialObj.



· destroy

Summary  |  Top
   public synchronized void destroy() 


· toString

Summary  |  Top
   public String toString() 

Return a string representation of this space.

Returns:
the string "NPM Space"


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7