org.logicalcobwebs.proxool
Class StateResultMonitor
java.lang.Object
org.logicalcobwebs.proxool.ResultMonitor
org.logicalcobwebs.proxool.StateResultMonitor
- All Implemented Interfaces:
- StateListenerIF
public class StateResultMonitor
- extends ResultMonitor
- implements StateListenerIF
A ResultMonitor specifically for State
- Since:
- Proxool 0.8
- Version:
- $Revision: 1.3 $, $Date: 2003/03/04 10:24:40 $
- Author:
- bill, $Author: billhorsman $ (current maintainer)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Log LOG
upState
private int upState
expectedUpState
private int expectedUpState
StateResultMonitor
public StateResultMonitor()
check
public boolean check()
throws java.lang.Exception
- waits for statistics
- Specified by:
check
in class ResultMonitor
- Returns:
ResultMonitor.SUCCESS
or ResultMonitor.TIMEOUT
- Throws:
java.lang.Exception
- if anything goes wrong
upStateChanged
public void upStateChanged(int upState)
- Specified by:
upStateChanged
in interface StateListenerIF
setExpectedUpState
public void setExpectedUpState(int expectedUpState)