org.ow2.clif.storage.api
Class ProbeEvent

java.lang.Object
  extended by org.ow2.clif.storage.api.AbstractEvent
      extended by 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

Field Summary
 long[] values
           
 
Fields inherited from class org.ow2.clif.storage.api.AbstractEvent
date, DEFAULT_SEPARATOR
 
Constructor Summary
protected ProbeEvent()
           
  ProbeEvent(long date, long[] values)
           
 
Method Summary
protected static BladeEvent fillEvent(java.lang.String separator, java.lang.String line, ProbeEvent event)
           
 java.lang.Object getFieldValue(java.lang.String fieldLabel)
           
 java.lang.String toString()
           
 java.lang.String toString(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
 

Field Detail

values

public long[] values
Constructor Detail

ProbeEvent

protected ProbeEvent()

ProbeEvent

public ProbeEvent(long date,
                  long[] values)
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:
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.