Class ClientHelper
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.func.client.ClientHelper
- Since:
- 26/08/2016
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]buildParallelOptions(IServer serverImpl, List<IFileSpec> fileSpecs, SyncOptions syncOpts, ParallelSyncOptions pSyncOpts) Helper method that build the parallel sync optionsstatic longsendBackWrittenDataBytes(CommandEnv cmdEnv, String filePath, long fileSize, long currentSize, long bytesRead) Send back the data bytes written (accumulated) This is for the progress indicator
-
Method Details
-
sendBackWrittenDataBytes
public static long sendBackWrittenDataBytes(CommandEnv cmdEnv, 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 String[] buildParallelOptions(IServer serverImpl, 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
-