Class 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 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 - cmdEnv
        filePath - filePath
        fileSize - fileSize
        currentSize - currentSize
        bytesRead - 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 - serverImpl
        fileSpecs - fileSpecs
        syncOpts - syncOpts
        pSyncOpts - pSyncOpts
        Returns:
        options
        Throws:
        P4JavaException - on error