private static boolean isValidConfigNode ( final boolean sslEnabled , final NodeInfo nodeInfo ) { if ( sslEnabled && nodeInfo . sslServices ( ) . containsKey ( ServiceType . CONFIG ) ) { return true ; } else if ( nodeInfo . services ( ) . containsKey ( ServiceType . CONFIG ) ) { return true ; } return false ; }
Helper method to detect if the given node can actually perform http config refresh .