org.logicalcobwebs.proxool
Class StateListenerTest.TestStateListener

java.lang.Object
  extended by org.logicalcobwebs.proxool.StateListenerTest.TestStateListener
All Implemented Interfaces:
StateListenerIF
Enclosing class:
StateListenerTest

 class StateListenerTest.TestStateListener
extends java.lang.Object
implements StateListenerIF


Field Summary
private  boolean somethingHappened
           
private  int upState
           
 
Fields inherited from interface org.logicalcobwebs.proxool.StateListenerIF
STATE_BUSY, STATE_DOWN, STATE_OVERLOADED, STATE_QUIET
 
Constructor Summary
StateListenerTest.TestStateListener()
           
 
Method Summary
(package private)  int getUpState()
           
(package private)  boolean isSomethingHappened()
           
(package private)  void reset()
           
 void upStateChanged(int newUpState)
           
(package private)  void waitForSomethingToHappen(int stateToWaitFor)
           
(package private)  int zgetNextState(int stateToWaitFor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

somethingHappened

private boolean somethingHappened

upState

private int upState
Constructor Detail

StateListenerTest.TestStateListener

StateListenerTest.TestStateListener()
Method Detail

upStateChanged

public void upStateChanged(int newUpState)
Specified by:
upStateChanged in interface StateListenerIF

isSomethingHappened

boolean isSomethingHappened()

getUpState

int getUpState()

reset

void reset()

waitForSomethingToHappen

void waitForSomethingToHappen(int stateToWaitFor)

zgetNextState

int zgetNextState(int stateToWaitFor)