private FileSystemChecksumServices() {
}
public static FileSystemChecksumService service(LaunchConfig launchConfig) {
Function<InputStream, String> checksummer = new Adler32Checksummer();
DefaultFileSystemChecksumService service = new DefaultFileSystemChecksumService(launchConfig.getBaseDir(), checksummer);
if (launchConfig.isDevelopment()) {
return service;
} else {
CachingFileSystemChecksumService cachingService = new CachingFileSystemChecksumService(service);
new FileSystemChecksumServicePopulater(launchConfig.getBaseDir().getFile(), cachingService, Executors.newFixedThreadPool(5), 4).start();