Class StressBenchConfig

  • All Implemented Interfaces:
    alluxio.job.JobConfig, alluxio.job.plan.PlanConfig, java.io.Serializable

    @ThreadSafe
    public final class StressBenchConfig
    extends java.lang.Object
    implements alluxio.job.plan.PlanConfig
    Config for the stress test.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      StressBenchConfig​(java.lang.String className, java.util.List<java.lang.String> args, long startDelayMs, int clusterLimit)  
    • Constructor Detail

      • StressBenchConfig

        public StressBenchConfig​(java.lang.String className,
                                 java.util.List<java.lang.String> args,
                                 long startDelayMs,
                                 int clusterLimit)
        Parameters:
        className - the class name of the benchmark to run
        args - the args for the benchmark
        startDelayMs - the start delay for the distributed tasks, in ms
        clusterLimit - the max number of workers to run on. If 0, run on entire cluster, If < 0, starts scheduling from the end of the worker list
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface alluxio.job.JobConfig
      • affectedPaths

        public java.util.Collection<java.lang.String> affectedPaths()
        Specified by:
        affectedPaths in interface alluxio.job.JobConfig
      • getClassName

        public java.lang.String getClassName()
        Returns:
        the class name
      • getArgs

        public java.util.List<java.lang.String> getArgs()
        Returns:
        the list of arguments
      • getStartDelayMs

        public long getStartDelayMs()
        Returns:
        the start delay in ms
      • getClusterLimit

        public int getClusterLimit()
        Returns:
        the number of workers to run on. If < 0, starts from the end of the worker list If == 0, run on entire cluster
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object