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, 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
values
public long[] values
ProbeEvent
protected ProbeEvent()
ProbeEvent
public ProbeEvent(long date,
long[] values)
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:
toString
in class java.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 substracted 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.