Package kieker.common.record.factory
Interface IRecordFactory<T>
- Type Parameters:
T
- the record type to used for creating new record instances
- All Known Implementing Classes:
ActivationEventFactory
,ActivationParameterEventFactory
,AddParameterValueEventFactory
,AfterConstructorEventFactory
,AfterConstructorFailedEventFactory
,AfterConstructorFailedObjectEventFactory
,AfterConstructorObjectEventFactory
,AfterDatabaseEventFactory
,AfterFailedThreadBasedEventFactory
,AfterOperationEventFactory
,AfterOperationFailedEventFactory
,AfterOperationFailedObjectEventFactory
,AfterOperationObjectEventFactory
,AfterThreadBasedEventFactory
,ApplicationTraceMetadataFactory
,BeforeConstructorEventFactory
,BeforeConstructorObjectEventFactory
,BeforeConstructorObjectInterfaceEventFactory
,BeforeDatabaseEventFactory
,BeforeOperationEventFactory
,BeforeOperationObjectEventFactory
,BeforeOperationObjectInterfaceEventFactory
,BeforeReceivedRemoteEventFactory
,BeforeSentRemoteEventFactory
,BeforeThreadBasedEventFactory
,BranchingRecordFactory
,CallConstructorEventFactory
,CallConstructorObjectEventFactory
,CallOperationEventFactory
,CallOperationObjectEventFactory
,ClassLoadingRecordFactory
,CompilationRecordFactory
,ConstructionEventFactory
,CPUUtilizationRecordFactory
,DatabaseFailedEventFactory
,DeactivationEventFactory
,DiskUsageRecordFactory
,EmptyRecordFactory
,EntryLevelBeforeOperationEventFactory
,EntryLevelBeforeOperationObjectEventFactory
,GCRecordFactory
,HostApplicationMetaDataFactory
,JoinEventFactory
,KiekerMetadataRecordFactory
,LoadAverageRecordFactory
,MemoryRecordFactory
,MemSwapUsageRecordFactory
,MonitorEntryEventFactory
,MonitorExitEventFactory
,MonitorNotifyAllEventFactory
,MonitorNotifyEventFactory
,MonitorRequestEventFactory
,MonitorWaitEventFactory
,NetworkUtilizationRecordFactory
,OperationCallEventFactory
,OperationExecutionRecordFactory
,RemoveParameterValueEventFactory
,ResourceUtilizationRecordFactory
,SessionEndEventFactory
,SessionStartEventFactory
,SplitEventFactory
,ThreadMetaDataFactory
,ThreadsStatusRecordFactory
,TimestampRecordFactory
,TraceMetadataFactory
,UpdateParameterEventFactory
,UptimeRecordFactory
public interface IRecordFactory<T>
- Since:
- 1.11
- Author:
- Christian Wulf
-
Field Summary
Fields Modifier and Type Field Description static int
UNKNOWN_RECORD_SIZE
Represents the size of a record whose size is unknown in advance. -
Method Summary
Modifier and Type Method Description T
create(IValueDeserializer deserializer)
Create a record of type T utilizing a @{linkIValueDeserializer
.int
getRecordSizeInBytes()
java.lang.String[]
getValueNames()
provide an array of all value names of an event type in definition order.java.lang.Class<?>[]
getValueTypes()
provide an array of all value types of an event type in definition order.
-
Field Details
-
UNKNOWN_RECORD_SIZE
static final int UNKNOWN_RECORD_SIZERepresents the size of a record whose size is unknown in advance.- See Also:
- Constant Field Values
-
-
Method Details
-
create
Create a record of type T utilizing a @{linkIValueDeserializer
.- Parameters:
deserializer
- The deserializer to use for decoding the values- Returns:
- a new instance of the declared record type
- Throws:
RecordInstantiationException
- on issues deserializing records, e.g., during enumeration deserialization- Since:
- 1.11
-
getValueNames
java.lang.String[] getValueNames()provide an array of all value names of an event type in definition order.- Returns:
- returns an array of value names
- Since:
- 1.15
-
getValueTypes
java.lang.Class<?>[] getValueTypes()provide an array of all value types of an event type in definition order.- Returns:
- returns an array of value types
- Since:
- 1.15
-
getRecordSizeInBytes
int getRecordSizeInBytes()- Returns:
- the size (in bytes) of the record in the serialized form, or a negative value represented by the constant
UNKNOWN_RECORD_SIZE
if the size is unknown in advance. - Since:
- 1.11
-