@Override
    public LockState acquireLock(Void env) {
      return procedureScheduler.waitTableExclusiveLock(this, getTableName())
        ? LockState.LOCK_EVENT_WAIT
        : LockState.LOCK_ACQUIRED;
    }
Tool to test performance of locks and queues in procedure scheduler independently from other
framework components. Inserts table and region operations in the scheduler, then polls them and
exercises their locks Number of tables, regions and operations can be set using cli args.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/procedure/MasterProcedureSchedulerPerformanceEvaluation.java