Package alluxio.stress
Class Parameters
- java.lang.Object
-
- alluxio.stress.Parameters
-
- Direct Known Subclasses:
CompactionParameters,FileSystemParameters,FuseIOParameters,JobServiceBenchParameters,RpcBenchParameters,UfsIOParameters
public abstract class Parameters extends java.lang.ObjectAbstract class for parameters of stress tests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceParameters.BooleanDescriptionThis annotation defines readable descriptions boolean parameters.static interfaceParameters.KeylessDescriptionThis annotation is for descriptions which do not display the key/name.static interfaceParameters.PathDescriptionThis annotation defines readable descriptions for paths.
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription(java.util.List<java.lang.String> fields)Returns a string representation of the parameters, using only the specified fields.java.lang.Enum<?>operation()Notice the function name can't be getOperation since Jackson would transfer this function in to json value, break Parameter serialization and cause serialization error.static alluxio.collections.Pair<java.util.List<java.lang.String>,java.util.List<java.lang.String>>partitionFieldNames(java.util.List<Parameters> paramList)
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription(java.util.List<java.lang.String> fields)
Returns a string representation of the parameters, using only the specified fields.- Parameters:
fields- the fields to use for the string representation- Returns:
- the string representation
-
partitionFieldNames
public static alluxio.collections.Pair<java.util.List<java.lang.String>,java.util.List<java.lang.String>> partitionFieldNames(java.util.List<Parameters> paramList)
- Parameters:
paramList- the list of parameters to extract the common and unique fields- Returns:
- a Pair of list of field names, (common fields, unique fields)
-
operation
public java.lang.Enum<?> operation()
Notice the function name can't be getOperation since Jackson would transfer this function in to json value, break Parameter serialization and cause serialization error.- Returns:
- the Operation Enum
-
-