private Boolean isASGEnabledinAWS ( String asgAccountid , String asgName ) { try { Stopwatch t = this . loadASGInfoTimer . start ( ) ; boolean returnValue = ! isAddToLoadBalancerSuspended ( asgAccountid , asgName ) ; t . stop ( ) ; return returnValue ; } catch ( Throwable e ) { logger . error ( "Could not get ASG information from AWS: " , e ) ; } return Boolean . TRUE ; }
Queries AWS to see if the load balancer flag is suspended .