edu.rice.cs.drjava.model.repl.newjvm
Class MainJVM.StartingState

java.lang.Object
  extended by edu.rice.cs.drjava.model.repl.newjvm.MainJVM.State
      extended by edu.rice.cs.drjava.model.repl.newjvm.MainJVM.StartingState
Enclosing class:
MainJVM

private class MainJVM.StartingState
extends MainJVM.State

Has been started, waiting for startup to complete.


Field Summary
private  int _failures
           
 
Constructor Summary
  MainJVM.StartingState()
           
private MainJVM.StartingState(int failures)
           
 
Method Summary
 void dispose()
           
 InterpreterJVMRemoteI interpreter(boolean used)
          Get the current interpreter -- null if unavailable.
 void restart(boolean force)
          Ensure that the interpreter is stopping or not running, to be started again.
 void start()
          Ensure that the interpreter is starting or running.
 void started(InterpreterJVMRemoteI i)
          React to a completed startup.
 void startFailed(Exception e)
          React to a failed startup.
 void stop()
          Ensure that the interpreter is stopping or not running.
 
Methods inherited from class edu.rice.cs.drjava.model.repl.newjvm.MainJVM.State
stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_failures

private final int _failures
Constructor Detail

MainJVM.StartingState

public MainJVM.StartingState()

MainJVM.StartingState

private MainJVM.StartingState(int failures)
Method Detail

interpreter

public InterpreterJVMRemoteI interpreter(boolean used)
Description copied from class: MainJVM.State
Get the current interpreter -- null if unavailable. Block if necessary.

Specified by:
interpreter in class MainJVM.State
Parameters:
used - Whether this access will lead to a used JVM -- one that should be reset even when not forced

start

public void start()
Description copied from class: MainJVM.State
Ensure that the interpreter is starting or running. Block if necessary.

Specified by:
start in class MainJVM.State

restart

public void restart(boolean force)
Description copied from class: MainJVM.State
Ensure that the interpreter is stopping or not running, to be started again. Block if necessary.

Specified by:
restart in class MainJVM.State
Parameters:
force - Whether an unused, running JVM should be restarted

stop

public void stop()
Description copied from class: MainJVM.State
Ensure that the interpreter is stopping or not running. Block if necessary.

Specified by:
stop in class MainJVM.State

dispose

public void dispose()
Specified by:
dispose in class MainJVM.State

started

public void started(InterpreterJVMRemoteI i)
Description copied from class: MainJVM.State
React to a completed startup.

Overrides:
started in class MainJVM.State

startFailed

public void startFailed(Exception e)
Description copied from class: MainJVM.State
React to a failed startup.

Overrides:
startFailed in class MainJVM.State