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

java.lang.Object
  |
  +--edu.rice.cs.util.newjvm.AbstractSlaveJVM
        |
        +--edu.rice.cs.util.newjvm.IntegratedMasterSlaveTest.CounterSlave
All Implemented Interfaces:
IntegratedMasterSlaveTest.SlaveI, Remote, SlaveRemote
Enclosing class:
IntegratedMasterSlaveTest

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

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
4
Interrupted while waiting for master JVM to call


Field Summary
private  int _counter
           
 
Fields inherited from class edu.rice.cs.util.newjvm.AbstractSlaveJVM
CHECK_MAIN_VM_ALIVE_MINUTES
 
Constructor Summary
IntegratedMasterSlaveTest.CounterSlave()
           
 
Method Summary
 int getNumber()
           
protected  void handleStart(MasterRemote m)
           
 
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, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface edu.rice.cs.util.newjvm.SlaveRemote
quit, start
 

Field Detail

_counter

private int _counter
Constructor Detail

IntegratedMasterSlaveTest.CounterSlave

public IntegratedMasterSlaveTest.CounterSlave()
Method Detail

getNumber

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

handleStart

protected void handleStart(MasterRemote m)
Overrides:
handleStart in class AbstractSlaveJVM