Kieker 1.5

kieker.common.record
Class AbstractMonitoringRecord

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.common.record.IMonitoringRecord
IMonitoringRecord.Factory
 
Constructor Summary
AbstractMonitoringRecord()
           
 
Method Summary
static void checkArray(Object[] values, Class<?>[] valueTypes)
           
static Class<? extends IMonitoringRecord> classForName(String classname)
           
 int compareTo(IMonitoringRecord otherRecord)
          Provides an ordering of IMonitoringRecords by the loggingTimestamp.
static IMonitoringRecord createFromArray(Class<? extends IMonitoringRecord> clazz, Object[] values)
           
static IMonitoringRecord createFromStringArray(Class<? extends IMonitoringRecord> clazz, String[] values)
           
 boolean equals(Object obj)
           
static Object[] fromStringArrayToTypedArray(String[] recordFields, Class<?>[] valueTypes)
           
 long getLoggingTimestamp()
           
 int hashCode()
           
 void setLoggingTimestamp(long timestamp)
           
 String toString()
          Creates a string representation of this record.
static Class<?>[] typesForClass(Class<? extends IMonitoringRecord> clazz)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface kieker.common.record.IMonitoringRecord
getValueTypes, initFromArray, toArray
 

Constructor Detail

AbstractMonitoringRecord

public AbstractMonitoringRecord()
Method Detail

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

Kieker 1.5

Copyright 2012 the Kieker Project, http://kieker-monitoring.net