org.logicalcobwebs.proxool

Interface StateListenerIF

Known Implementing Classes:
CompositeStateListener

public interface StateListenerIF

Monitors the state of the pool so you can see whether it is quiet, busy, overloaded, or down.
 String alias = "myPool";
 StateListenerIF myStateListener = new MyStateListener();
 ProxoolFacade.addStateListenerIF(alias, myStateListener);
 
Version:
$Revision: 1.5 $, $Date: 2003/03/03 11:11:58 $
Authors:
billhorsman
$Author: billhorsman $ (current maintainer)

Field Summary

static int
STATE_BUSY
static int
STATE_DOWN
static int
STATE_OVERLOADED
static int
STATE_QUIET

Method Summary

void
upStateChanged(int upState)

Field Details

STATE_BUSY

public static final int STATE_BUSY
Field Value:
1

STATE_DOWN

public static final int STATE_DOWN
Field Value:
3

STATE_OVERLOADED

public static final int STATE_OVERLOADED
Field Value:
2

STATE_QUIET

public static final int STATE_QUIET
Field Value:
0

Method Details

upStateChanged

public void upStateChanged(int upState)