kieker.common.record
Class AbstractMonitoringRecord
java.lang.Object
kieker.common.record.AbstractMonitoringRecord
- All Implemented Interfaces:
- Serializable, Comparable<IMonitoringRecord>, IMonitoringRecord
- Direct Known Subclasses:
- AbstractEvent, BranchingRecord, CPUUtilizationRecord, EmptyRecord, MemSwapUsageRecord, OperationExecutionRecord, RegistryRecord, ResourceUtilizationRecord, TimestampRecord, Trace
public abstract class AbstractMonitoringRecord
- extends Object
- implements IMonitoringRecord
- Author:
- Andre van Hoorn, Jan Waller
- See Also:
- Serialized Form
AbstractMonitoringRecord
public AbstractMonitoringRecord()
getLoggingTimestamp
public final long getLoggingTimestamp()
- Specified by:
getLoggingTimestamp
in interface IMonitoringRecord
setLoggingTimestamp
public final void setLoggingTimestamp(long timestamp)
- Specified by:
setLoggingTimestamp
in interface IMonitoringRecord
toString
public final String toString()
- Description copied from interface:
IMonitoringRecord
- 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.
- Specified by:
toString
in interface IMonitoringRecord
- Overrides:
toString
in class Object
compareTo
public int compareTo(IMonitoringRecord otherRecord)
- Provides an ordering of IMonitoringRecords by the loggingTimestamp.
Classes overriding the implementation should respect this ordering. (see #326)
- Specified by:
compareTo
in interface Comparable<IMonitoringRecord>
equals
public final boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
checkArray
public static final void checkArray(Object[] values,
Class<?>[] valueTypes)
fromStringArrayToTypedArray
public static final Object[] fromStringArrayToTypedArray(String[] recordFields,
Class<?>[] valueTypes)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
classForName
public static final Class<? extends IMonitoringRecord> classForName(String classname)
throws MonitoringRecordException
- Throws:
MonitoringRecordException
typesForClass
public static final Class<?>[] typesForClass(Class<? extends IMonitoringRecord> clazz)
throws MonitoringRecordException
- Throws:
MonitoringRecordException
createFromArray
public static final IMonitoringRecord createFromArray(Class<? extends IMonitoringRecord> clazz,
Object[] values)
throws MonitoringRecordException
- Throws:
MonitoringRecordException
createFromStringArray
public static final IMonitoringRecord createFromStringArray(Class<? extends IMonitoringRecord> clazz,
String[] values)
throws MonitoringRecordException
- Throws:
MonitoringRecordException
Copyright 2012 Kieker Project, http://kieker-monitoring.net>