Package org.ow2.clif.storage.api
Class ActionEvent
- java.lang.Object
-
- org.ow2.clif.storage.api.AbstractEvent
-
- org.ow2.clif.storage.api.ActionEvent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<java.lang.Object>,BladeEvent
public class ActionEvent extends AbstractEvent
Class of events produced by load injectors.- Author:
- Bruno Dillenseger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringcommentintdurationstatic java.lang.StringEVENT_TYPE_LABELlongiterationjava.io.SerializableresultlongsessionIdbooleansuccessfuljava.lang.Stringtype-
Fields inherited from class org.ow2.clif.storage.api.AbstractEvent
date, DEFAULT_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ActionEvent()ActionEvent(long date, long sessionId, java.lang.String type, long iteration, boolean successful, int duration, java.lang.String comment, java.io.Serializable result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetComment()intgetDuration()java.lang.String[]getFieldLabels()java.lang.ObjectgetFieldValue(java.lang.String fieldLabel)java.io.SerializablegetResult()longgetSession()java.lang.StringgetType()java.lang.StringgetTypeLabel()booleanisSuccessful()java.lang.StringtoString()java.lang.StringtoString(long dateOrigin, java.lang.String separator)-
Methods inherited from class org.ow2.clif.storage.api.AbstractEvent
compareTo, getDate, getEventFactory, getEventFieldLabels, registerEventFieldLabels, setDate
-
-
-
-
Field Detail
-
EVENT_TYPE_LABEL
public static final java.lang.String EVENT_TYPE_LABEL
- See Also:
- Constant Field Values
-
type
public java.lang.String type
-
iteration
public long iteration
-
sessionId
public long sessionId
-
successful
public boolean successful
-
duration
public int duration
-
result
public java.io.Serializable result
-
comment
public java.lang.String comment
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
-
getDuration
public int getDuration()
-
getSession
public long getSession()
-
getResult
public java.io.Serializable getResult()
-
getComment
public java.lang.String getComment()
-
getType
public java.lang.String getType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getTypeLabel
public java.lang.String getTypeLabel()
- Returns:
- a label uniquely designating this class of event
-
toString
public java.lang.String toString(long dateOrigin, java.lang.String separator)- Parameters:
dateOrigin- 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.
-
getFieldLabels
public java.lang.String[] getFieldLabels()
- Returns:
- an array of labels identifying the fields (attributes) hold by this event, in the same order as they are displayed by toString(long, String).
- See Also:
BladeEvent.toString(long, String)
-
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.
-
-