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
private  int _counter
           
private  IntegratedMasterSlaveTest.TestMasterRemote _master
           
static IntegratedMasterSlaveTest.CounterSlave ONLY
           
 
Fields inherited from class edu.rice.cs.util.newjvm.AbstractSlaveJVM
CHECK_MAIN_VM_ALIVE_SECONDS
 
Constructor Summary
private IntegratedMasterSlaveTest.CounterSlave()
           
 
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, 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

_counter

private volatile int _counter

_master

private volatile IntegratedMasterSlaveTest.TestMasterRemote _master
Constructor Detail

IntegratedMasterSlaveTest.CounterSlave

private IntegratedMasterSlaveTest.CounterSlave()
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()
Specified by:
startLetterTest in interface IntegratedMasterSlaveTest.TestSlaveRemote