Package alluxio.stress.job
Class StressBenchConfig
- java.lang.Object
-
- alluxio.stress.job.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.PlanConfigConfig 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>affectedPaths()booleanequals(java.lang.Object obj)java.util.List<java.lang.String>getArgs()java.lang.StringgetClassName()intgetClusterLimit()java.lang.StringgetName()longgetStartDelayMs()inthashCode()java.lang.StringtoString()
-
-
-
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 runargs- the args for the benchmarkstartDelayMs- the start delay for the distributed tasks, in msclusterLimit- 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:
getNamein interfacealluxio.job.JobConfig
-
affectedPaths
public java.util.Collection<java.lang.String> affectedPaths()
- Specified by:
affectedPathsin interfacealluxio.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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-