public static String getPath(Type type, String root) {
    String typepath = root + OVERHEAD_PATH;
    switch (type) {
    case JOB:
      typepath = root + JOB_PATH;
      break;
    case JOBTRACKING:
      typepath = root + JOB_TRACKINGPATH;
      break;
    }
    return typepath;
  }
Static method to get the path based on the type.

@param type
@param root
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/HDFSStorage.java