public static long getMaxMasterTimeout(Configuration conf, SnapshotDescription.Type type,
    long defaultMaxWaitTime) {
    String confKey;
    switch (type) {
      case DISABLED:
      default:
        confKey = MASTER_SNAPSHOT_TIMEOUT_MILLIS;
    }
    return Math.max(conf.getLong(confKey, defaultMaxWaitTime),
      conf.getLong(MASTER_SNAPSHOT_TIMEOUT_MILLIS, defaultMaxWaitTime));
  }
@param conf               {@link Configuration} from which to check for the timeout
@param type               type of snapshot being taken
@param defaultMaxWaitTime Default amount of time to wait, if none is in the configuration
@return the max amount of time the master should wait for a snapshot to complete
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotDescriptionUtils.java