Package com.gpudb.filesystem
Class GPUdbFileHandler.Options
java.lang.Object
com.gpudb.filesystem.GPUdbFileHandler.Options
Enclosing class:
This class models the options available for modifying some behaviors of the
GPUdbFileHandler class.Constructor Summary
ConstructorsConstructorDescriptionOptions()Create default file handling options.Options(GPUdbFileHandler.Options other) Create file handling options as a copy of the given ones.Method Summary
Modifier and TypeMethodDescriptionlongGets 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.intReturns 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.setFullFileDispatcherThreadpoolSize(int fullFileDispatcherThreadpoolSize) Sets the size of the thread pool used internally to handle batches of full file uploads.
Constructor Details
Options
Create file handling options as a copy of the given ones.Parameters:other- TheGPUdbFileHandler.Optionsinstance to copy from.
Method Details
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
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 currentGPUdbFileHandler.Optionsinstance.Throws:GPUdbException- If the given thread pool size is invalid in the current execution environment.See Also: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
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.