private boolean isAddToLoadBalancerSuspended ( AutoScalingGroup asg ) { List < SuspendedProcess > suspendedProcesses = asg . getSuspendedProcesses ( ) ; for ( SuspendedProcess process : suspendedProcesses ) { if ( PROP_ADD_TO_LOAD_BALANCER . equals ( process . getProcessName ( ) ) ) { return true ; } } return false ; }
Checks if the load balancer addition is disabled or not .