code: static public boolean doRaid(Configuration conf, PolicyInfo info,
        EncodingCandidate src, Statistics statistics, 
        Progressable reporter) 
            throws IOException {
      int targetRepl = Integer.parseInt(info.getProperty("targetReplication"));
      int metaRepl = Integer.parseInt(info.getProperty("metaReplication"));
  
      Codec codec = Codec.getCodec(info.getCodecId());
      Path destPref = new Path(codec.parityDirectory);
  
      String simulate = info.getProperty("simulate");
      boolean doSimulate = simulate == null ? false : Boolean
          .parseBoolean(simulate);
  
      return doRaid(conf, src, destPref, codec, statistics,
            reporter, doSimulate, targetRepl, metaRepl);
    }
docs: RAID an individual file/directory
  @throws InterruptedException