public final class RegistryRecord extends AbstractMonitoringRecord
Modifier and Type | Field and Description |
---|---|
static int |
CLASS_ID |
static java.lang.String |
ENCODING |
static int |
SIZE |
static java.lang.Class<?>[] |
TYPES |
TYPE_SIZE_BOOLEAN, TYPE_SIZE_BYTE, TYPE_SIZE_CHARACTER, TYPE_SIZE_DOUBLE, TYPE_SIZE_FLOAT, TYPE_SIZE_INT, TYPE_SIZE_LONG, TYPE_SIZE_SHORT, TYPE_SIZE_STRING
Constructor and Description |
---|
RegistryRecord(int id,
java.lang.String string)
Creates a new instance of this class using the given parameters.
|
RegistryRecord(IValueDeserializer deserializer)
This constructor converts the given array into a record.
|
RegistryRecord(java.lang.Object[] values)
This constructor converts the given array into a record.
|
Modifier and Type | Method and Description |
---|---|
int |
getId() |
int |
getSize()
This method should deliver the size of a binary representation of this record.
|
byte[] |
getStrBytes() |
java.lang.String |
getString() |
java.lang.String[] |
getValueNames()
This method delivers an array containing the value names of the record.
|
java.lang.Class<?>[] |
getValueTypes()
This method delivers an array with the classes of the single values for the record.
|
static void |
registerRecordInRegistry(java.nio.ByteBuffer buffer,
ReaderRegistry<java.lang.String> stringRegistry)
Static function used to register strings stored in a byte buffer as string in the string registry with the proper id.
|
void |
serialize(IValueSerializer serializer)
This method serializes this record using the given serializer.
|
checkArray, classForName, compareTo, createFromDeserializer, equals, fromStringArrayToTypedArray2, getLoggingTimestamp, hashCode, isNotEqual, isNotEqual, setLoggingTimestamp, typesForClass
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
toString
public static final int SIZE
public static final java.lang.Class<?>[] TYPES
public static final java.lang.String ENCODING
public static final int CLASS_ID
public RegistryRecord(int id, java.lang.String string)
id
- The ID.string
- The string.public RegistryRecord(java.lang.Object[] values)
#toArray()
.values
- The values for the record.public RegistryRecord(IValueDeserializer deserializer) throws java.nio.BufferUnderflowException
deserializer
- The deserializer to decode the record with.java.nio.BufferUnderflowException
- if buffer not sufficientpublic void serialize(IValueSerializer serializer) throws java.nio.BufferOverflowException
serializer
- The serializer to serialize the record with. *java.nio.BufferOverflowException
- If the underlying buffer has insufficient capacity to store this recordpublic java.lang.Class<?>[] getValueTypes()
public java.lang.String[] getValueNames()
IMonitoringRecord
public int getSize()
public final byte[] getStrBytes()
public final int getId()
public final java.lang.String getString()
public static final void registerRecordInRegistry(java.nio.ByteBuffer buffer, ReaderRegistry<java.lang.String> stringRegistry) throws java.nio.BufferOverflowException
buffer
- the byte buffer containing the stringstringRegistry
- the registry where the string is storedjava.nio.BufferOverflowException
- if the length encoded in the buffer exceeds the buffers boundaryCopyright 2020 Kieker Project, http://kieker-monitoring.net