public static QueryInfo getFromConf(HiveConf conf) {
    return new QueryInfo("INITIALIZED", conf.get(DriverContext.DEFAULT_USER_NAME_PROP),
        conf.getVar(HiveConf.ConfVars.HIVE_EXECUTION_ENGINE), HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_SESSION_ID),
        conf.get(DriverContext.DEFAULT_OPERATION_ID_PROP));
  }
The class is synchronized, as WebUI may access information about a running query.
ql/src/java/org/apache/hadoop/hive/ql/QueryInfo.java