public int run ( ) throws IOException { ConfigCheckReport report = mMetaMasterClient . getConfigReport ( ) ; ConfigStatus configStatus = report . getConfigStatus ( ) ; if ( configStatus == ConfigStatus . PASSED ) { // No errors or warnings to show mPrintStream . println ( "No server-side configuration errors or warnings." ) ; return 0 ; } Map < Scope , List < InconsistentProperty > > errors = report . getConfigErrors ( ) ; if ( errors . size ( ) != 0 ) { mPrintStream . println ( "Server-side configuration errors " + "(those properties are required to be identical): " ) ; printInconsistentProperties ( errors ) ; } Map < Scope , List < InconsistentProperty > > warnings = report . getConfigWarns ( ) ; if ( warnings . size ( ) != 0 ) { mPrintStream . println ( "\nServer-side configuration warnings " + "(those properties are recommended to be identical): " ) ; printInconsistentProperties ( warnings ) ; } return 0 ; }
Runs doctor configuration command .