Package org.ow2.clif.storage.api
Class ProbeEvent
- java.lang.Object
-
- org.ow2.clif.storage.api.AbstractEvent
-
- org.ow2.clif.storage.api.ProbeEvent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<java.lang.Object>,BladeEvent
- Direct Known Subclasses:
CPUEvent,DiskEvent,JMX_JVMEvent,JVMEvent,MemoryEvent,NetworkEvent,RTPEvent
public abstract class ProbeEvent extends AbstractEvent
Super class for events generated by probes.- Author:
- Bruno Dillenseger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description long[]values-
Fields inherited from class org.ow2.clif.storage.api.AbstractEvent
date, DEFAULT_SEPARATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProbeEvent()ProbeEvent(long date, long[] values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static BladeEventfillEvent(java.lang.String separator, java.lang.String line, ProbeEvent event)java.lang.ObjectgetFieldValue(java.lang.String fieldLabel)java.lang.StringtoString()java.lang.StringtoString(long originDate, java.lang.String separator)-
Methods inherited from class org.ow2.clif.storage.api.AbstractEvent
compareTo, getDate, getEventFactory, getEventFieldLabels, registerEventFieldLabels, setDate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ow2.clif.storage.api.BladeEvent
getFieldLabels, getTypeLabel
-
-
-
-
Method Detail
-
fillEvent
protected static BladeEvent fillEvent(java.lang.String separator, java.lang.String line, ProbeEvent event) throws ClifException
- Throws:
ClifException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(long originDate, java.lang.String separator)- Parameters:
originDate- the origin date in milliseconds (since 1st January 1970). This value is subtracted from the event date before printing, thus allowing a change of date origin.separator- the separator string to be used to separate the event values- Returns:
- a text line describing this scenario event, consisting of values separated by the given separator string. The first field shall be an integer giving the date of the event.
-
getFieldValue
public java.lang.Object getFieldValue(java.lang.String fieldLabel)
- Parameters:
fieldLabel- the label of the target field- Returns:
- the value as an Object hold by the given field.
-
-