Package org.jppf.load.balancer
Class BundlerHelper
java.lang.Object
org.jppf.load.balancer.BundlerHelper
Collection of static utility methods to help with bundler operations.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidupdateBundler(Bundler<?> bundler, int nbTasks, double totalTime) Provide feedback to a bundler from a channel after execution of a set of tasks.static voidupdateBundler(BundlerEx<?> bundler, int nbTasks, double totalTime, double accumulatedElapsed, double overheadTime) Provide feedback to a bundler with the result of using the bundle with the specified size.
-
Constructor Details
-
BundlerHelper
public BundlerHelper()
-
-
Method Details
-
updateBundler
Provide feedback to a bundler from a channel after execution of a set of tasks. The feedback data consists in providing a number of tasks that were executed, and their total execution time in milliseconds. The execution time includes the network round trip between node and server.- Parameters:
bundler- the load banlancer to update.nbTasks- number of tasks that were executed.totalTime- the total execution and transport time in nanoseconds.
-
updateBundler
public static void updateBundler(BundlerEx<?> bundler, int nbTasks, double totalTime, double accumulatedElapsed, double overheadTime) Provide feedback to a bundler with the result of using the bundle with the specified size. The feedback data consists in providing a number of tasks that were executed, and their total execution time in milliseconds. The execution time includes the network round trip between node and server.- Parameters:
bundler- the load banlancer to update.nbTasks- number of tasks that were executed.totalTime- the total execution and transport time in nanoseconds.accumulatedElapsed- the total accumalated elapsed time (in the node) in nanoseconds for the execution of the tasks.overheadTime- the transport time in nanoseconds.
-