edu.rice.cs.util.newjvm
Interface SlaveRemote

All Superinterfaces:
Remote
All Known Subinterfaces:
IntegratedMasterSlaveTest.SlaveI
All Known Implementing Classes:
AbstractSlaveJVM

public interface SlaveRemote
extends Remote

The remote interface for a slave JVM. All instances must also provide a no-arg constructor, which is reflectively invoked in SlaveJVMRunner.

Version:
$Id: SlaveRemote.java,v 1.3 2002/04/14 16:41:52 brianstoler Exp $

Method Summary
 void quit()
          Quits the slave JVM.
 void start(MasterRemote master)
          This method is called when the slave JVM is initialized.
 

Method Detail

quit

public void quit()
          throws RemoteException
Quits the slave JVM.

start

public void start(MasterRemote master)
           throws RemoteException
This method is called when the slave JVM is initialized.
Parameters:
master - The remote link to the master JVM. Note that the implementation of the slave class will have to downcast this reference to the correct master remote interface. Also ote that because of the GJ erasure semantics, this can't have the type it, which is MasterRemote. Luckily it doesn't matter much here to use the erased type.