Class ClientHelper
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.func.client.ClientHelper
-
public class ClientHelper extends java.lang.Object
- Since:
- 26/08/2016
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
buildParallelOptions(IServer serverImpl, java.util.List<IFileSpec> fileSpecs, SyncOptions syncOpts, ParallelSyncOptions pSyncOpts)
Helper method that build the parallel sync optionsstatic 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
-
-
-
Method Detail
-
sendBackWrittenDataBytes
public 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- Parameters:
cmdEnv
- cmdEnvfilePath
- filePathfileSize
- fileSizecurrentSize
- currentSizebytesRead
- bytesRead- Returns:
- bytes written
-
buildParallelOptions
public static java.lang.String[] buildParallelOptions(IServer serverImpl, java.util.List<IFileSpec> fileSpecs, SyncOptions syncOpts, ParallelSyncOptions pSyncOpts) throws P4JavaException
Helper method that build the parallel sync options- Parameters:
serverImpl
- serverImplfileSpecs
- fileSpecssyncOpts
- syncOptspSyncOpts
- pSyncOpts- Returns:
- options
- Throws:
P4JavaException
- on error
-
-