Enum DslCsvDataSet.Sharing
- java.lang.Object
-
- java.lang.Enum<DslCsvDataSet.Sharing>
-
- us.abstracta.jmeter.javadsl.core.configs.DslCsvDataSet.Sharing
-
- All Implemented Interfaces:
Serializable,Comparable<DslCsvDataSet.Sharing>,EnumParam.EnumPropertyValue
- Enclosing class:
- DslCsvDataSet
public static enum DslCsvDataSet.Sharing extends Enum<DslCsvDataSet.Sharing> implements EnumParam.EnumPropertyValue
Specifies the way the threads in a test plan consume the CSV.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_THREADSAll threads in the test plan will share the CSV file, meaning that any thread iteration will consume an entry from it.THREADCSV file consumption is isolated per thread.THREAD_GROUPCSV file consumption is only shared within thread groups.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringpropertyValue()static DslCsvDataSet.SharingvalueOf(String name)Returns the enum constant of this type with the specified name.static DslCsvDataSet.Sharing[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL_THREADS
public static final DslCsvDataSet.Sharing ALL_THREADS
All threads in the test plan will share the CSV file, meaning that any thread iteration will consume an entry from it. You can think as having only one pointer to the current line of the CSV, being advanced by any thread iteration. The file is only opened once.
-
THREAD_GROUP
public static final DslCsvDataSet.Sharing THREAD_GROUP
CSV file consumption is only shared within thread groups. This means that threads in separate thread groups will use separate indexes to consume the data. The file is open once per thread group.
-
THREAD
public static final DslCsvDataSet.Sharing THREAD
CSV file consumption is isolated per thread. This means that each thread will start consuming the CSV from the beginning and not share any information with other threads. The file is open once per thread.
-
-
Method Detail
-
values
public static DslCsvDataSet.Sharing[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DslCsvDataSet.Sharing c : DslCsvDataSet.Sharing.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DslCsvDataSet.Sharing valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
propertyValue
public String propertyValue()
- Specified by:
propertyValuein interfaceEnumParam.EnumPropertyValue
-
-