private void handleEIPBinding ( ) throws InterruptedException { int retries = serverConfig . getEIPBindRebindRetries ( ) ; // Bind to EIP if needed for ( int i = 0 ; i < retries ; i ++ ) { try { if ( isEIPBound ( ) ) { break ; } else { bindEIP ( ) ; } } catch ( Throwable e ) { logger . error ( "Cannot bind to EIP" , e ) ; Thread . sleep ( EIP_BIND_SLEEP_TIME_MS ) ; } } // Schedule a timer which periodically checks for EIP binding. timer . schedule ( new EIPBindingTask ( ) , serverConfig . getEIPBindingRetryIntervalMsWhenUnbound ( ) ) ; }
Handles EIP binding process in AWS Cloud .