fileList.add(reader);
}
List
/**
* Check how many success and how many failure
*/
int success = 0, failure = 0;
for (Future
if (result.get() == null) {
failure++;
} else {
success++;
}
}
System.out.println("Success Count [" + success + "]");
System.out.println("Failure Count [" + failure + "]");
} else {
throw new IllegalArgumentException("There is no such directory name -" + directory);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
if (executorPool != null) {
executorPool.shutdown();
}
}
}
}