Package com.xceptance.xlt.api.engine
Interface DataManager
public interface DataManager
The
DataManager logs data records to a log file, from where they may be read again during test report
generation. The DataManager instance responsible for a certain test user may be obtained from the current
session object via Session.getDataManager().-
Method Summary
Modifier and TypeMethodDescriptiondataLogger(String scope) Creates or returns an already created custom data logger for the given scope.voidDisables the logging of data records.voidEnables the logging of data records.longReturns the time that marks the end of the logging period.longReturns the time that marks the beginning of the logging period.booleanReturns whether or not logging of data records is currently enabled.voidlogDataRecord(Data data) Logs the given data record to a log file, but only if logging is enabled and the current time is inside the configured logging period.voidLogs an event data record that is initialized with the given parameters, but only if logging is enabled and the current time is inside the configured logging period.voidsetEndOfLoggingPeriod(long time) Sets the time that marks the end of the logging period.voidsetLoggingEnabled(boolean state) Sets whether or not logging of data records is currently enabled.voidsetStartOfLoggingPeriod(long time) Sets the time that marks the beginning of the logging period.
-
Method Details
-
getEndOfLoggingPeriod
long getEndOfLoggingPeriod()Returns the time that marks the end of the logging period.- Returns:
- the end time
-
getStartOfLoggingPeriod
long getStartOfLoggingPeriod()Returns the time that marks the beginning of the logging period.- Returns:
- the start time
-
isLoggingEnabled
boolean isLoggingEnabled()Returns whether or not logging of data records is currently enabled.- Returns:
- the logging state
-
logEvent
Logs an event data record that is initialized with the given parameters, but only if logging is enabled and the current time is inside the configured logging period.- Parameters:
eventName- the name of the eventmessage- the event message
-
logDataRecord
Logs the given data record to a log file, but only if logging is enabled and the current time is inside the configured logging period.- Parameters:
data- the data record
-
setEndOfLoggingPeriod
void setEndOfLoggingPeriod(long time) Sets the time that marks the end of the logging period.- Parameters:
time- the end time
-
setLoggingEnabled
void setLoggingEnabled(boolean state) Sets whether or not logging of data records is currently enabled.- Parameters:
state- the logging state
-
enableLogging
void enableLogging()Enables the logging of data records. -
disableLogging
void disableLogging()Disables the logging of data records. -
setStartOfLoggingPeriod
void setStartOfLoggingPeriod(long time) Sets the time that marks the beginning of the logging period.- Parameters:
time- the start time
-
dataLogger
Creates or returns an already created custom data logger for the given scope.- Parameters:
scope- the scope of the data logger- Returns:
- the custom data logger for the given scope
-