|
Kieker 1.9 | |||||||||
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. |
Class<?>[] |
getValueTypes()
This method should deliver an array with the classes of the single values for the record. |
void |
initFromArray(Object[] values)
This method should initialize the record based on the given values. |
void |
initFromBytes(ByteBuffer buffer,
IRegistry<String> stringRegistry)
This method should initialize the record based on the given values. |
void |
setLoggingTimestamp(long timestamp)
Sets the logging timestamp to a new value. |
Object[] |
toArray()
This method should deliver an array containing the content of the record. |
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(ByteBuffer buffer,
IRegistry<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.String toString()
toString
in class Object
Object[] toArray()
void writeBytes(ByteBuffer buffer, IRegistry<String> stringRegistry) throws BufferOverflowException
buffer
- The used ByteBuffer with sufficient capacitystringRegistry
- Usually the associated MonitoringController
BufferOverflowException
- if buffer not sufficientvoid initFromBytes(ByteBuffer buffer, IRegistry<String> stringRegistry) throws BufferUnderflowException
writeBytes(ByteBuffer, IRegistry)
.
buffer
- The bytes for the record.stringRegistry
- The Registry storing the strings.
BufferUnderflowException
- if buffer not sufficientvoid initFromArray(Object[] values)
toArray()
.
values
- The values for the record.Class<?>[] getValueTypes()
toArray()
int getSize()
|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |