parameters: (self)
return_statement: return True
docstring: Returns True if self.args are valid, false otherwise
docstring_summary: Returns True if self.args are valid, false otherwise
docstring_tokens: Returns True if self . args are valid false otherwise
function: def validate_args(self):
      """Returns True if self.args are valid, false otherwise"""
      if self.args.pid <= 0:
        logging.critical("Invalid PID provided.")
        return False
  
      if self.target_process_name not in self.IMPALA_PROCESSES:
        logging.critical("No valid Impala process with the given PID %s" % str(self.args.pid))
        return False
  
      if not self.java_home:
        logging.critical("JAVA_HOME could not be inferred from process env.\
            Please specify --java_home.")
        return False
  
      if self.args.jmap and not os.path.exists(self.jmap_cmd):
        logging.critical("jmap binary not found, required to collect a Java heap dump.")
        return False
  
      if self.args.gcore and not os.path.exists(self.gcore_cmd):
        logging.critical("gcore binary not found, required to collect a core dump.")
        return False
  
      if self.args.profiles_dir and not os.path.isdir(self.args.profiles_dir):
        logging.critical("No valid profiles directory at path: %s" % self.args.profiles_dir)
        return False
  
      return True
function_tokens: def validate_args ( self ) : if self . args . pid <= 0 : logging . critical ( "Invalid PID provided." ) return False if self . target_process_name not in self . IMPALA_PROCESSES : logging . critical ( "No valid Impala process with the given PID %s" % str ( self . args . pid ) ) return False if not self . java_home : logging . critical ( "JAVA_HOME could not be inferred from process env.\
            Please specify --java_home." ) return False if self . args . jmap and not os . path . exists ( self . jmap_cmd ) : logging . critical ( "jmap binary not found, required to collect a Java heap dump." ) return False if self . args . gcore and not os . path . exists ( self . gcore_cmd ) : logging . critical ( "gcore binary not found, required to collect a core dump." ) return False if self . args . profiles_dir and not os . path . isdir ( self . args . profiles_dir ) : logging . critical ( "No valid profiles directory at path: %s" % self . args . profiles_dir ) return False return True