/** * Remove all temporary paths. * * @throws IOException */ private void cleanup() throws IOException { if (_garbage != null) { _garbage.clean(); } }
@Override protected void initialize() { _garbage = new FileCleaner(getFileSystem()); if (getMaxIterations() == null) { setMaxIterations(20); } if (getMaxToProcess() == null) { if (getNumDays() != null) { setMaxToProcess(getNumDays()); } else { setMaxToProcess(90); } } super.initialize(); }
_garbage.add(jobTempPath); ensurePath(getOutputPath());
@Override protected void initialize() { _garbage = new FileCleaner(getFileSystem()); if (getMaxIterations() == null) { setMaxIterations(20); } if (getMaxToProcess() == null) { if (getNumDays() != null) { setMaxToProcess(getNumDays()); } else { setMaxToProcess(90); } } if (getRetentionCount() == null) { setRetentionCount(1); } super.initialize(); }
_garbage.add(tempOutputPath);
/** * Remove all temporary paths. * * @throws IOException */ private void cleanup() throws IOException { if (_garbage != null) { _garbage.clean(); } }