Kieker 1.11

kieker.common.record.factory
Interface IRecordFactory<T>

Type Parameters:
T - the record type to used for creating new record instances
All Known Implementing Classes:
AfterConstructorEventFactory, AfterConstructorFailedEventFactory, AfterConstructorFailedObjectEventFactory, AfterConstructorObjectEventFactory, AfterOperationEventFactory, AfterOperationFailedEventFactory, AfterOperationFailedObjectEventFactory, AfterOperationObjectEventFactory, AggregationWindowFactory, BeforeConstructorEventFactory, BeforeConstructorObjectEventFactory, BeforeConstructorObjectInterfaceEventFactory, BeforeOperationEventFactory, BeforeOperationObjectEventFactory, BeforeOperationObjectInterfaceEventFactory, BranchingRecordFactory, CallConstructorEventFactory, CallConstructorObjectEventFactory, CallOperationEventFactory, CallOperationObjectEventFactory, ClassLoadingRecordFactory, CompilationRecordFactory, ConstructionEventFactory, CPUUtilizationRecordFactory, EmptyRecordFactory, ExtendedStorableDetectionResultFactory, GCRecordFactory, JoinEventFactory, KiekerMetadataRecordFactory, MemoryRecordFactory, MemSwapUsageRecordFactory, MonitorEntryEventFactory, MonitorExitEventFactory, MonitorNotifyAllEventFactory, MonitorNotifyEventFactory, MonitorRequestEventFactory, MonitorWaitEventFactory, NamedDoubleRecordFactory, NamedTSPointFactory, OperationExecutionRecordFactory, RecordFactoryWrapper, ResourceUtilizationRecordFactory, SplitEventFactory, StorableDetectionResultFactory, ThreadsStatusRecordFactory, TimestampRecordFactory, TraceMetadataFactory, UptimeRecordFactory

public interface IRecordFactory<T>

Since:
1.11
Author:
Christian Wulf

Field Summary
static int UNKNOWN_RECORD_SIZE
          Represents the size of a record whose size is unknown in advance
 
Method Summary
 T create(java.nio.ByteBuffer buffer, IRegistry<java.lang.String> stringRegistry)
           
 T create(java.lang.Object[] values)
           
 int getRecordSizeInBytes()
           
 

Field Detail

UNKNOWN_RECORD_SIZE

static final int UNKNOWN_RECORD_SIZE
Represents the size of a record whose size is unknown in advance

See Also:
Constant Field Values
Method Detail

create

T create(java.nio.ByteBuffer buffer,
         IRegistry<java.lang.String> stringRegistry)
Parameters:
buffer - the buffer to read from
stringRegistry - the registry to read strings from
Returns:
a new instance of the declared record type
Since:
1.11

create

T create(java.lang.Object[] values)
Parameters:
values - the values used to fill the new instance
Returns:
a new instance of the declared record type
Since:
1.11

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

Kieker 1.11

Copyright 2015 Kieker Project, http://kieker-monitoring.net