public static DriverState getDriverState() {
    return tlInstance.get();
  }
Represents the driver's state. Also has mechanism for locking for the time of state transitions.
ql/src/java/org/apache/hadoop/hive/ql/DriverState.java