edu.rice.cs.util.newjvm
Class IntegratedMasterSlaveTest.CounterSlave

java.lang.Object
  extended by edu.rice.cs.util.newjvm.AbstractSlaveJVM
      extended by edu.rice.cs.util.newjvm.IntegratedMasterSlaveTest.CounterSlave
All Implemented Interfaces:
IntegratedMasterSlaveTest.TestSlaveRemote, SlaveRemote, Remote
Enclosing class:
IntegratedMasterSlaveTest

public static class IntegratedMasterSlaveTest.CounterSlave
extends AbstractSlaveJVM
implements IntegratedMasterSlaveTest.TestSlaveRemote

The slave will exit with error codes in the case of problems, since there is no other thing it can do!

1
MasterRemote class cast exception.
2
Incorect value from getLetter
3
RemoteException caught
4
Timeout waiting for master JVM to call
5
Interrupted while waiting for master JVM to call


Field Summary
static IntegratedMasterSlaveTest.CounterSlave ONLY
           
 
Fields inherited from class edu.rice.cs.util.newjvm.AbstractSlaveJVM
_log, _pollMasterThreadName, _quitSlaveThreadName, CHECK_MAIN_VM_ALIVE_SECONDS
 
Method Summary
 int getNumber()
           
protected  void handleStart(MasterRemote m)
          Called when the slave JVM has started running.
 void startLetterTest()
           
 
Methods inherited from class edu.rice.cs.util.newjvm.AbstractSlaveJVM
beforeQuit, quit, quitFailed, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.rice.cs.util.newjvm.SlaveRemote
quit, start
 

Field Detail

ONLY

public static final IntegratedMasterSlaveTest.CounterSlave ONLY
Method Detail

getNumber

public int getNumber()
Specified by:
getNumber in interface IntegratedMasterSlaveTest.TestSlaveRemote

handleStart

protected void handleStart(MasterRemote m)
Description copied from class: AbstractSlaveJVM
Called when the slave JVM has started running. Subclasses must implement this method.

Specified by:
handleStart in class AbstractSlaveJVM

startLetterTest

public void startLetterTest()
                     throws RemoteException
Specified by:
startLetterTest in interface IntegratedMasterSlaveTest.TestSlaveRemote
Throws:
RemoteException