Class ParallelSyncOptions
java.lang.Object
com.perforce.p4java.option.client.ParallelSyncOptions
Simple default options object for IClient.syncParallel.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorParallelSyncOptions(int batch, int batchSize, int minimum, int minumumSize, int numberOfThreads, IParallelCallback callback) Constructor with the given argumentsParallelSyncOptions(IParallelCallback callback) Constructs a ParallelSyncOptions with an instance of an IParallelCallback -
Method Summary
Modifier and TypeMethodDescriptionintgetBatch()intintintintvoidsetBatch(int batch) Sets the batchvoidsetBatchSize(int batchSize) Sets the batch sizevoidsetCallback(IParallelCallback callback) Sets IParallelCallbackvoidsetMinimum(int minimum) Sets minimumvoidsetMinumumSize(int minumumSize) Sets minimumvoidsetNumberOfThreads(int numberOfThreads) Sets number of threads
-
Constructor Details
-
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 batchbatchSize- - number of bytes in a batchminimum- - minimum number of files in a parallel syncminumumSize- - minimum number of bytes in a parallel syncnumberOfThreads- - number of independent network connections to be used during parallelisationcallback- - call back interface for parallel execution
-
ParallelSyncOptions
Constructs a ParallelSyncOptions with an instance of an IParallelCallback- Parameters:
callback- - call back interface for parallel execution
-
-
Method Details
-
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
- Returns:
- call back interface for parallel execution
-
setCallback
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
-