public class DetailedEventStreamAggregatedLogger extends Object implements IEventLogger
The detailed recorder serializes all the object values in addition to the object id being otherwise recorded. The serialized data is to be used for test case generation
This object creates three types of files: 1. log-*.slg files recording a sequence of events, 2. LOG$Types.txt recording a list of type IDs and their corresponding type names, 3. ObjectIdMap recording a list of object IDs and their type IDs. Using the second and third files, a user can know classes in an execution trace.
| Modifier and Type | Field and Description |
|---|---|
static java.time.Duration |
MILLI_1 |
| Constructor and Description |
|---|
DetailedEventStreamAggregatedLogger(String includedPackage,
File outputDir,
AggregatedFileLogger aggregatedLogger)
Create an instance of logging object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all file streams used by the object.
|
Object |
getObjectByClassName(String className) |
ObjectIdAggregatedStream |
getObjectIdMap() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
ClassLoader |
getTargetClassLoader() |
void |
recordEvent(int dataId,
boolean value)
Record an event and an integer value.
|
void |
recordEvent(int dataId,
byte value)
Record an event and an integer value.
|
void |
recordEvent(int dataId,
char value)
Record an event and an integer value.
|
void |
recordEvent(int dataId,
double value)
Record an event and an integer value.
|
void |
recordEvent(int dataId,
float value)
Record an event and an integer value.
|
void |
recordEvent(int dataId,
int value)
Record an event and an integer value.
|
void |
recordEvent(int dataId,
long value)
Record an event and an integer value.
|
void |
recordEvent(int dataId,
Object value)
Record an event and an object.
|
void |
recordEvent(int dataId,
short value)
Record an event and an integer value.
|
void |
recordWeaveInfo(byte[] byteArray,
com.insidious.common.weaver.ClassInfo classIdEntry,
WeaveLog log) |
void |
registerClass(Integer id,
Class<?> type) |
void |
setRecording(boolean b) |
public DetailedEventStreamAggregatedLogger(String includedPackage, File outputDir, AggregatedFileLogger aggregatedLogger) throws IOException
includedPackage - comma separated string of class names included in probing this sessionoutputDir - specifies an object to record errors that occur in this classaggregatedLogger - writerIOExceptionpublic ObjectIdAggregatedStream getObjectIdMap()
public void close()
close in interface IEventLoggerpublic Object getObjectByClassName(String className)
getObjectByClassName in interface IEventLoggerpublic void recordEvent(int dataId,
Object value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordEvent(int dataId,
int value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordEvent(int dataId,
long value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordEvent(int dataId,
byte value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordEvent(int dataId,
short value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordEvent(int dataId,
char value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordEvent(int dataId,
boolean value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordEvent(int dataId,
double value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordEvent(int dataId,
float value)
recordEvent in interface IEventLoggerdataId - specifies an event and its bytecode location.value - contains a value to be recorded.public void recordWeaveInfo(byte[] byteArray,
com.insidious.common.weaver.ClassInfo classIdEntry,
WeaveLog log)
recordWeaveInfo in interface IEventLoggerpublic void setRecording(boolean b)
setRecording in interface IEventLoggerpublic com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
getObjectMapper in interface IEventLoggerpublic ClassLoader getTargetClassLoader()
getTargetClassLoader in interface IEventLoggerpublic void registerClass(Integer id, Class<?> type)
registerClass in interface IEventLoggerCopyright © 2023. All rights reserved.