public boolean isThisMyUrl ( String url ) { final String myUrlConfigured = serverConfig . getMyUrl ( ) ; if ( myUrlConfigured != null ) { return myUrlConfigured . equals ( url ) ; } return isInstanceURL ( url , applicationInfoManager . getInfo ( ) ) ; }
Checks if the given service url contains the current host which is trying to replicate . Only after the EIP binding is done the host has a chance to identify itself in the list of replica nodes and needs to take itself out of replication traffic .