Package com.gpudb.filesystem
Class GPUdbFileHandler.Options
- java.lang.Object
-
- com.gpudb.filesystem.GPUdbFileHandler.Options
-
- Enclosing class:
- GPUdbFileHandler
public static final class GPUdbFileHandler.Options extends Object
This class models the options available for modifying some behaviors of theGPUdbFileHandlerclass.
-
-
Constructor Summary
Constructors Constructor Description Options()Create default file handling options.Options(GPUdbFileHandler.Options other)Create file handling options as a copy of the given ones.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetFileSizeToSplit()Gets the value of the file split size--files smaller than this size will be uploaded in batches up to this size, and files greater than this size will be uploaded in parts up to this size.intgetFullFileDispatcherThreadpoolSize()Returns the size of the thread pool used internally to handle batches of full file uploads.voidsetFileSizeToSplit(long fileSizeToSplit)Sets the value of the file split size--files smaller than this size will be uploaded in batches up to this size, and files greater than this size will be uploaded in parts up to this size.GPUdbFileHandler.OptionssetFullFileDispatcherThreadpoolSize(int fullFileDispatcherThreadpoolSize)Sets the size of the thread pool used internally to handle batches of full file uploads.
-
-
-
Constructor Detail
-
Options
public Options()
Create default file handling options.
-
Options
public Options(GPUdbFileHandler.Options other)
Create file handling options as a copy of the given ones.- Parameters:
other- TheGPUdbFileHandler.Optionsinstance to copy from.
-
-
Method Detail
-
getFullFileDispatcherThreadpoolSize
public int getFullFileDispatcherThreadpoolSize()
Returns the size of the thread pool used internally to handle batches of full file uploads. The default value is 5.- Returns:
- The configured size of the dispatcher thread pool.
- See Also:
setFullFileDispatcherThreadpoolSize(int)
-
setFullFileDispatcherThreadpoolSize
public GPUdbFileHandler.Options setFullFileDispatcherThreadpoolSize(int fullFileDispatcherThreadpoolSize) throws GPUdbException
Sets the size of the thread pool used internally to handle batches of full file uploads. The default value is 5.- Parameters:
fullFileDispatcherThreadpoolSize- The number of threads that the file dispatcher pool should use.- Returns:
- The current
GPUdbFileHandler.Optionsinstance. - Throws:
GPUdbException- If the given thread pool size is invalid in the current execution environment.- See Also:
getFullFileDispatcherThreadpoolSize()
-
getFileSizeToSplit
public long getFileSizeToSplit()
Gets the value of the file split size--files smaller than this size will be uploaded in batches up to this size, and files greater than this size will be uploaded in parts up to this size.- Returns:
- The file split size in bytes.
- See Also:
setFileSizeToSplit(long)
-
setFileSizeToSplit
public void setFileSizeToSplit(long fileSizeToSplit) throws GPUdbExceptionSets the value of the file split size--files smaller than this size will be uploaded in batches up to this size, and files greater than this size will be uploaded in parts up to this size.- Parameters:
fileSizeToSplit- The file split size in bytes.- Throws:
GPUdbException
-
-