edu.rice.cs.util.newjvm
Interface SlaveRemote

All Superinterfaces:
Remote
All Known Subinterfaces:
IntegratedMasterSlaveTest.TestSlaveRemote, InterpreterJVMRemoteI
All Known Implementing Classes:
AbstractSlaveJVM, IntegratedMasterSlaveTest.CounterSlave, InterpreterJVM

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 4419 2008-03-27 06:58:07Z rcartwright $

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

void quit()
          throws RemoteException
Quits the slave JVM.

Throws:
RemoteException

start

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 note 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.
Throws:
RemoteException