public static ScheduledExecutorService getPool() {
    if (self == null) {
      throw new RuntimeException("ThreadPool accessed before initialized");
    }
    return pool;
  }
Utility singleton class to manage all the threads.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ThreadPool.java