Class GPUdbFileHandler.Options

  • Enclosing class:
    GPUdbFileHandler

    public static final class GPUdbFileHandler.Options
    extends Object
    This class models the options available for modifying some behaviors of the GPUdbFileHandler class.
    • Constructor Detail

      • Options

        public Options()
        Create default file handling options.
    • 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.Options instance.
        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 GPUdbException
        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.
        Parameters:
        fileSizeToSplit - The file split size in bytes.
        Throws:
        GPUdbException