Package com.xceptance.xlt.api.engine
Class CustomValue
java.lang.Object
com.xceptance.xlt.api.engine.AbstractData
com.xceptance.xlt.api.engine.CustomValue
- All Implemented Interfaces:
Data
The
CustomValue can store a single 'double' value.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newCustomValueobject.CustomValue(String name) Creates a newCustomValueobject and gives it the specified name. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue()Returns the value.voidsetRemainingValues(List<XltCharBuffer> values) Called by XLT during report creation to recreate the remaining object state from the passed string list.voidsetValue(double value) Sets the value.toList()Called by XLT during a load test to return the full state of the object as a list of strings.Methods inherited from class com.xceptance.xlt.api.engine.AbstractData
getAgentName, getName, getTime, getTransactionName, getTypeCode, setAgentName, setAllValues, setBaseValues, setName, setTime, setTransactionName
-
Constructor Details
-
CustomValue
Creates a newCustomValueobject and gives it the specified name. Furthermore, the start time attribute is set to the current time.- Parameters:
name- the statistics name
-
CustomValue
public CustomValue()Creates a newCustomValueobject.
-
-
Method Details
-
setValue
public void setValue(double value) Sets the value.- Parameters:
value- the value
-
getValue
public double getValue()Returns the value.- Returns:
- the value
-
toList
Called by XLT during a load test to return the full state of the object as a list of strings. The first three entries have to be, in this order, the type code, the name, and the timestamp. All remaining entries and their order are specific to the concrete implementation class.Override this method in sub classes by calling the super method and adding custom values to the list it returns.
- Specified by:
toListin interfaceData- Overrides:
toListin classAbstractData- Returns:
- the list of values that form the state of this object
- See Also:
-
setRemainingValues
Called by XLT during report creation to recreate the remaining object state from the passed string list. The base values have already been initialized by callingData.setBaseValues(List)with the same list of values. Splitting the process of recreating the full object state into two methods is purely for performance reasons as the second step is not always needed.- Parameters:
values- the string list to recreate the object state from- See Also:
-