public interface IMonitoringRecord extends java.io.Serializable, java.lang.Comparable<IMonitoringRecord>
Warning: Objects within records should not contain ';', '\n', or '\r' in their respective toString() representation.
IMonitoringRecord.Factory
Modifier and Type | Interface and Description |
---|---|
static interface |
IMonitoringRecord.BinaryFactory
Any record that implements this interface has to conform to certain specifications.
|
static interface |
IMonitoringRecord.Factory
Any record that implements this interface has to conform to certain specifications.
|
Modifier and Type | Method and Description |
---|---|
long |
getLoggingTimestamp()
Delivers the current timestamp of the record.
|
int |
getSize()
Deprecated.
since 1.13 (to be removed in 1.14) With the introduction of value serializers, this method has become obsolete.
|
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.
|
void |
initFromArray(java.lang.Object[] values)
This method should initialize the record based on the given values.
|
void |
registerStrings(IRegistry<java.lang.String> stringRegistry)
Deprecated.
since 1.13 (to be removed in 1.14): Is unnecessary when using the new, serializer-based output.
|
void |
serialize(IValueSerializer serializer)
This method serializes this record using the given serializer.
|
void |
setLoggingTimestamp(long timestamp)
Sets the logging timestamp to a new value.
|
java.lang.Object[] |
toArray()
This method should deliver an array containing the content of the record.
|
java.lang.String |
toString()
Creates a string representation of this record.
This method should not be used for serialization purposes since this is not the purpose of Object's toString method. |
long getLoggingTimestamp()
void setLoggingTimestamp(long timestamp)
timestamp
- The new timestamp for the record.java.lang.String toString()
toString
in class java.lang.Object
java.lang.Object[] toArray()
@Deprecated void registerStrings(IRegistry<java.lang.String> stringRegistry)
stringRegistry
.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 recordvoid initFromArray(java.lang.Object[] values)
toArray()
.values
- The values for the record.java.lang.Class<?>[] getValueTypes()
toArray()
java.lang.String[] getValueNames()
toArray()
int getSize()
Copyright 2017 Kieker Project, http://kieker-monitoring.net