public int getLoad ( ) { final int status = this . state ; if ( anyAreSet ( status , ERROR ) ) { return - 1 ; } else if ( anyAreSet ( status , HOT_STANDBY ) ) { return 0 ; } else { return lbStatus . getLbFactor ( ) ; } }
Get the load information . Add the error information for clients .