java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.func.client.ClientHelper

public class ClientHelper extends Object
Since:
26/08/2016
  • 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 - cmdEnv
      filePath - filePath
      fileSize - fileSize
      currentSize - currentSize
      bytesRead - 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 - serverImpl
      fileSpecs - fileSpecs
      syncOpts - syncOpts
      pSyncOpts - pSyncOpts
      Returns:
      options
      Throws:
      P4JavaException - on error