Class ParallelSyncOptions


  • public class ParallelSyncOptions
    extends java.lang.Object
    Simple default options object for IClient.syncParallel.
    • Constructor Detail

      • ParallelSyncOptions

        public ParallelSyncOptions()
        Default constructor
      • ParallelSyncOptions

        public ParallelSyncOptions​(int batch,
                                   int batchSize,
                                   int minimum,
                                   int minumumSize,
                                   int numberOfThreads,
                                   IParallelCallback callback)
        Constructor with the given arguments
        Parameters:
        batch - - number of files in a batch
        batchSize - - number of bytes in a batch
        minimum - - minimum number of files in a parallel sync
        minumumSize - - minimum number of bytes in a parallel sync
        numberOfThreads - - number of independent network connections to be used during parallelisation
        callback - - call back interface for parallel execution
      • ParallelSyncOptions

        public ParallelSyncOptions​(IParallelCallback callback)
        Constructs a ParallelSyncOptions with an instance of an IParallelCallback
        Parameters:
        callback - - call back interface for parallel execution
    • Method Detail

      • getBatch

        public int getBatch()
        Returns:
        number of files in a batch
      • getBatchSize

        public int getBatchSize()
        Returns:
        number of bytes in a batch
      • getMinimum

        public int getMinimum()
        Returns:
        minimum number of files in a parallel sync
      • getMinumumSize

        public int getMinumumSize()
        Returns:
        minimum number of bytes in a parallel sync
      • getNumberOfThreads

        public int getNumberOfThreads()
        Returns:
        number of independent network connections to be used during parallelisation
      • getCallback

        public IParallelCallback getCallback()
        Returns:
        call back interface for parallel execution
      • setCallback

        public void setCallback​(IParallelCallback callback)
        Sets IParallelCallback
        Parameters:
        callback - - call back interface for parallel execution
      • setBatch

        public void setBatch​(int batch)
        Sets the batch
        Parameters:
        batch - - number of bytes in a batch
      • setBatchSize

        public void setBatchSize​(int batchSize)
        Sets the batch size
        Parameters:
        batchSize - - number of bytes in a batch
      • setMinimum

        public void setMinimum​(int minimum)
        Sets minimum
        Parameters:
        minimum - - minimum number of files in a parallel sync
      • setMinumumSize

        public void setMinumumSize​(int minumumSize)
        Sets minimum
        Parameters:
        minumumSize - - minimum number of bytes in a parallel sync
      • setNumberOfThreads

        public void setNumberOfThreads​(int numberOfThreads)
        Sets number of threads
        Parameters:
        numberOfThreads - - number of independent network connections to be used during parallelisation