|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMonitoringRecord
All Kieker monitoring records have to implement this minimal interface.
Warning: Objects within records should not contain ';', '\n', or '\r' in their respective toString() representation.
IMonitoringRecord.Factory
Nested Class Summary | |
---|---|
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. |
Method Summary | |
---|---|
long |
getLoggingTimestamp()
Delivers the current timestamp of the record. |
int |
getSize()
This method should deliver the size of a binary representation of this record. |
java.lang.Class<?>[] |
getValueTypes()
This method should deliver 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 |
initFromBytes(java.nio.ByteBuffer buffer,
IRegistry<java.lang.String> stringRegistry)
This method should initialize the record based on the given values. |
void |
registerStrings(IRegistry<java.lang.String> stringRegistry)
Registers the string attributes of the record at the given stringRegistry . |
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. |
void |
writeBytes(java.nio.ByteBuffer buffer,
IRegistry<java.lang.String> stringRegistry)
This method should deliver an byte array containing the content of the record. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
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()
void registerStrings(IRegistry<java.lang.String> stringRegistry)
stringRegistry
.
void writeBytes(java.nio.ByteBuffer buffer, IRegistry<java.lang.String> stringRegistry) throws java.nio.BufferOverflowException
buffer
- The used ByteBuffer with sufficient capacitystringRegistry
- Usually the associated MonitoringController
java.nio.BufferOverflowException
- if buffer not sufficientvoid initFromBytes(java.nio.ByteBuffer buffer, IRegistry<java.lang.String> stringRegistry) throws java.nio.BufferUnderflowException
writeBytes(ByteBuffer, IRegistry)
.
buffer
- The bytes for the record.stringRegistry
- The Registry storing the strings.
java.nio.BufferUnderflowException
- if buffer not sufficientvoid initFromArray(java.lang.Object[] values)
toArray()
.
values
- The values for the record.java.lang.Class<?>[] getValueTypes()
toArray()
int getSize()
|
Kieker 1.11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |