Class FileSystemPerformanceHelper
- java.lang.Object
-
- org.openstreetmap.atlas.generator.tools.filesystem.FileSystemPerformanceHelper
-
public final class FileSystemPerformanceHelper extends java.lang.ObjectWhen working with a FileSystem that is slow at renaming, this provides a hack to speed up the rename of output files. The rename calls made by Spark are sent to many threads.
-
-
Field Summary
Fields Modifier and Type Field Description static intNUMBER_POOL_THREADSstatic intPOOL_MINUTES_BEFORE_KILL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanexecuteRename(java.util.concurrent.Callable<java.lang.Boolean> renameOperation)static voidopenRenamePool()static voidwaitForAndCloseRenamePool()
-
-
-
Field Detail
-
NUMBER_POOL_THREADS
public static final int NUMBER_POOL_THREADS
- See Also:
- Constant Field Values
-
POOL_MINUTES_BEFORE_KILL
public static final int POOL_MINUTES_BEFORE_KILL
- See Also:
- Constant Field Values
-
-