public class ClientHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
buildParallelOptions(IServer serverImpl,
java.util.List<IFileSpec> fileSpecs,
SyncOptions syncOpts,
ParallelSyncOptions pSyncOpts)
Helper method that build the parallel sync options
|
static long |
sendBackWrittenDataBytes(CommandEnv cmdEnv,
java.lang.String filePath,
long fileSize,
long currentSize,
long bytesRead)
Send back the data bytes written (accumulated)
This is for the progress indicator
|
public static long sendBackWrittenDataBytes(CommandEnv cmdEnv, java.lang.String filePath, long fileSize, long currentSize, long bytesRead)
cmdEnv
- cmdEnvfilePath
- filePathfileSize
- fileSizecurrentSize
- currentSizebytesRead
- bytesReadpublic static java.lang.String[] buildParallelOptions(IServer serverImpl, java.util.List<IFileSpec> fileSpecs, SyncOptions syncOpts, ParallelSyncOptions pSyncOpts) throws P4JavaException
serverImpl
- serverImplfileSpecs
- fileSpecssyncOpts
- syncOptspSyncOpts
- pSyncOptsP4JavaException
- on error