forked from DrJavaAtRice/drjava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.html
More file actions
45 lines (43 loc) · 1.66 KB
/
package.html
File metadata and controls
45 lines (43 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
HTML file providing an overview of the contents of this package.
$Id: package.html 5246 2010-05-07 19:10:44Z mgricken $
-->
</head>
<body bgcolor="white">
<P>
This package is a system to allow the invocation and control of
a new Java virtual machine. The two JVMs can communicate by using
RMI.
</P>
<P>
To use these classes:
</P>
<OL>
<LI>Create a remote interface that the master JVM will support,
extending {@link edu.rice.cs.util.newjvm.MasterRemote}. This
interface must specify of the methods that the slave JVM can call
on the master JVM. All methods in this interface must be declared
to throw {@link java.rmi.RemoteException.}</LI>
<LI>Create a remote interface that the slave JVM will support,
extending {@link edu.rice.cs.util.newjvm.SlaveRemote}. This
interface must specify of the methods that the master JVM can call
on the slave JVM. All methods in this interface must be declared
to throw {@link java.rmi.RemoteException.}</LI>
<LI>Create the master JVM implementation, which must extend {@link
edu.rice.cs.util.newjvm.AbstractMasterJVM} and implement
YourMasterInterface. Note that the <CODE>super()</CODE> call must
pass to AbstractMasterJVM the fully-qualified class name of the
slave JVM implementation.</LI>
<LI>Create the slave JVM implementation, which must extend {@link
edu.rice.cs.util.newjvm.AbstractSlaveJVM} and implement
YourSlaveInterface.</LI>
</OL>
<P>
Now you can create an instance of your master JVM class and use its
{@link edu.rice.cs.util.newjvm.AbstractMasterJVM#invokeSlave} method
to start the slave JVM.
</body>
</html>