Class PerformanceSample

java.lang.Object
org.jppf.load.balancer.PerformanceSample
All Implemented Interfaces:
Serializable

public class PerformanceSample extends Object implements Serializable
This is a utility class to be used to store the pair of mean and the number of samples this mean is based on.
See Also:
  • Field Details

    • mean

      public double mean
      Mean compute time for server to node round trip.
    • samples

      public long samples
      Number of samples used to compute the mean value.
  • Constructor Details

    • PerformanceSample

      public PerformanceSample()
      Default constructor.
    • PerformanceSample

      public PerformanceSample(double mean, long samples)
      Initialize this sample with the specified mean execute time and number of samples.
      Parameters:
      mean - Mean compute time for server to node round trip.
      samples - Number of samples used to compute the mean value.