Class DefaultParallelSync

  • All Implemented Interfaces:
    IParallelCallback

    public class DefaultParallelSync
    extends java.lang.Object
    implements IParallelCallback
    Provides capability to perform sync in parallel. The actual functionality is implemented as a server callback.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultParallelSync()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean transmit​(CommandEnv cmdEnv, int threads, java.util.HashMap<java.lang.String,​java.lang.String> flags, java.util.ArrayList<java.lang.String> args)
      This function notifies the server that the sync can be done in parallel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultParallelSync

        public DefaultParallelSync()
        Default constructor
    • Method Detail

      • transmit

        public boolean transmit​(CommandEnv cmdEnv,
                                int threads,
                                java.util.HashMap<java.lang.String,​java.lang.String> flags,
                                java.util.ArrayList<java.lang.String> args)
        This function notifies the server that the sync can be done in parallel.

        Invocation of this method spawns the threads required to support parallelism

        Specified by:
        transmit in interface IParallelCallback
        Parameters:
        cmdEnv - command env
        threads - threads
        flags - flags
        args - arguments
        Returns:
        true if no error