Class ParallelSyncOptions
- java.lang.Object
-
- com.perforce.p4java.option.client.ParallelSyncOptions
-
public class ParallelSyncOptions extends java.lang.Object
Simple default options object for IClient.syncParallel.
-
-
Constructor Summary
Constructors Constructor Description ParallelSyncOptions()
Default 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBatch()
int
getBatchSize()
IParallelCallback
getCallback()
int
getMinimum()
int
getMinumumSize()
int
getNumberOfThreads()
void
setBatch(int batch)
Sets the batchvoid
setBatchSize(int batchSize)
Sets the batch sizevoid
setCallback(IParallelCallback callback)
Sets IParallelCallbackvoid
setMinimum(int minimum)
Sets minimumvoid
setMinumumSize(int minumumSize)
Sets minimumvoid
setNumberOfThreads(int numberOfThreads)
Sets number of threads
-
-
-
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 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
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
-
-