private boolean isHub ( ServerBartender server ) { int upCount = 0 ; for ( ServerHeartbeat rackServer : _rack . getServers ( ) ) { if ( rackServer == null || ! rackServer . isUp ( ) ) { continue ; } if ( rackServer == server && upCount < _hubCount ) { return true ; } upCount ++ ; if ( _hubCount <= upCount ) { return false ; } } return false ; }
Test if the server is a hub server for its rack .