Package com.xceptance.xlt.api.engine
Interface DataManager
-
public interface DataManagerTheDataManagerlogs data records to a log file, from where they may be read again during test report generation. TheDataManagerinstance responsible for a certain test user may be obtained from the current session object viaSession.getDataManager().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisableLogging()Disables the logging of data records.voidenableLogging()Enables the logging of data records.longgetEndOfLoggingPeriod()Returns the time that marks the end of the logging period.longgetStartOfLoggingPeriod()Returns the time that marks the beginning of the logging period.booleanisLoggingEnabled()Returns 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.voidlogEvent(java.lang.String eventName, java.lang.String message)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.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 Detail
-
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
void logEvent(java.lang.String eventName, java.lang.String message)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
void logDataRecord(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.- 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
-
-